C#读XML配置文件与忽略注释(3种方法)

C#读xml配置文件与忽视注释部分。 方法一: string filepath =@"\Xml.config"; if (File.Exists(filepath)) { XmlDocument xmlDoc = new XmlDocument(); XmlReaderSettings settings = new XmlReaderSettings(); settings.IgnoreComme
相关文章
相关标签/搜索