【发布时间】:2014-09-02 10:35:41
【问题描述】:
GetNamedItem("test") 方法和 XmlAttributeCollection 中的索引访问有区别吗?也许在 null 处理或其他方面?
xml_node.Attributes.GetNamedItem("test").Value;
xml_node.Attributes["test"].Value;
【问题讨论】:
标签: c# xml xml-attribute xmlattributecollection