12 2024 档案
摘要:Publicfile publicfile = new Publicfile(); try { string filePath = Path.Combine("C:?", fileName); if (!File.Exists(filePath)) { WriteErrorLog($"File({f
阅读全文
摘要:Publicfile publicfile = new Publicfile(); publicfile.FileName = "TESTFILE"; publicfile.Position1 = 100; Type type = typeof(Publicfile); PropertyInfo[]
阅读全文
摘要:using System; using System.Reflection; public class MyClass { public int Property1 { get; set; } = 42; public string Property2 { get; set; } = "Hello,
阅读全文
摘要:XDocument document = new XDocument(new XDeclaration("1.0","utf-8",null)); XElement root = new XElement("root"); root.SetAttributeValue("Name", "Config
阅读全文