草庐IT

InputConfig

全部标签

c# - 使用 XmlSerializer 反序列化 XML 时保留纯空白元素内容

我有一个类InputConfig其中包含List:publicclassInputConfig{//TherestoftheclassomittedprivateListincludeExcludeRules;publicListIncludeExcludeRules{get{returnincludeExcludeRules;}set{includeExcludeRules=value;}}}publicclassIncludeExcludeRule{//Othermembersomittedprivateintidx;privatestringfunction;publicintI