摘要: 自动属性默认初始化 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 ? "" ... 阅读全文
posted @ 2018-01-31 15:36 会弹猫的吉他 阅读(119) 评论(0) 推荐(0) 编辑
摘要: public class XmlHelper { public XmlHelper() { } public enum XmlType { File, String }; /// /// 创建XML文档 ... 阅读全文
posted @ 2018-01-31 09:26 会弹猫的吉他 阅读(155) 评论(0) 推荐(0) 编辑