12 2024 档案

摘要:Publicfile publicfile = new Publicfile(); try { string filePath = Path.Combine("C:?", fileName); if (!File.Exists(filePath)) { WriteErrorLog($"File({f 阅读全文
posted @ 2024-12-18 14:41 芈璐 阅读(6) 评论(0) 推荐(0) 编辑
摘要:Publicfile publicfile = new Publicfile(); publicfile.FileName = "TESTFILE"; publicfile.Position1 = 100; Type type = typeof(Publicfile); PropertyInfo[] 阅读全文
posted @ 2024-12-18 14:36 芈璐 阅读(8) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Reflection; public class MyClass { public int Property1 { get; set; } = 42; public string Property2 { get; set; } = "Hello, 阅读全文
posted @ 2024-12-17 14:13 芈璐 阅读(41) 评论(0) 推荐(0) 编辑
摘要:XDocument document = new XDocument(new XDeclaration("1.0","utf-8",null)); XElement root = new XElement("root"); root.SetAttributeValue("Name", "Config 阅读全文
posted @ 2024-12-16 14:11 芈璐 阅读(32) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示