System.Xml.XmlElement
属性と子を変更できないように、読み取り専用を簡単に返すことはできますか?
XmlNode.IsReadOnlyを使用することをお勧めします。例えば、
System.Xml.XmlElement xml = ...;
//this line does not compile because the IsReadOnly property is read only
xml.IsReadOnly = true;
return xml;
System.Xml.XmlElement
属性と子を変更できないように、読み取り専用を簡単に返すことはできますか?
XmlNode.IsReadOnlyを使用することをお勧めします。例えば、
System.Xml.XmlElement xml = ...;
//this line does not compile because the IsReadOnly property is read only
xml.IsReadOnly = true;
return xml;