摘要:
自动属性默认初始化 public string Name { get; set; } = "hello world"; Null条件运算符 Customer customer = new Customer(); string name3 = customer?.Name; 字符串格式化 var s = $"{p.Name} is {p.Age} year{(p.Age == 1 ? "" ... 阅读全文
摘要:
public class XmlHelper { public XmlHelper() { } public enum XmlType { File, String }; /// /// 创建XML文档 ... 阅读全文