Share Link
Copied to clipboard
Embed on Your Page
Copied to clipboard
We Stand with Ukraine
[Fork] https://stackoverflow.com/questions/73127531/how-to-add-a-new-node-to-an-existing-xml-using-c-sharp by dbc_MinLength
Environment version: .NET 9.0.0 (9.0.0, Unix 6.8.0.1014)


<?xml version="1.0" encoding="utf-16"?>
<SerializableDictWithGuidOfStringString idXml001="123">
  <item>
    <key>
      <string>hello</string>
    </key>
    <value>
      <string>there</string>
    </value>
  </item>
  <item>
    <key>
      <string>foo</string>
    </key>
    <value>
      <string>bar</string>
    </value>
  </item>
</SerializableDictWithGuidOfStringString>

<?xml version="1.0" encoding="utf-16"?>
<SerializableDictWithGuidOfStringString>
  <item>
    <key>
      <string>hello</string>
    </key>
    <value>
      <string>there</string>
    </value>
  </item>
  <item>
    <key>
      <string>foo</string>
    </key>
    <value>
      <string>bar</string>
    </value>
  </item>
</SerializableDictWithGuidOfStringString>

interfaces implemented by SerializableDictWithGuid`2[System.String,System.String]
  System.Collections.Generic.IDictionary`2[System.String,System.String]
  System.Collections.Generic.ICollection`1[System.Collections.Generic.KeyValuePair`2[System.String,System.String]]
  System.Collections.Generic.IEnumerable`1[System.Collections.Generic.KeyValuePair`2[System.String,System.String]]
  System.Collections.IEnumerable
  System.Collections.IDictionary
  System.Collections.ICollection
  System.Collections.Generic.IReadOnlyDictionary`2[System.String,System.String]
  System.Collections.Generic.IReadOnlyCollection`1[System.Collections.Generic.KeyValuePair`2[System.String,System.String]]
  System.Runtime.Serialization.ISerializable
  System.Runtime.Serialization.IDeserializationCallback
  System.Xml.Serialization.IXmlSerializable
  IMyInterface
method name=Void ReadXml(System.Xml.XmlReader), method.IsVirtual=True, declaring type = SerializableDictWithGuid`2[System.String,System.String]
method name=Void WriteXml(System.Xml.XmlWriter), method.IsVirtual=True, declaring type = SerializableDictWithGuid`2[System.String,System.String]
method name=Void ReadXml(System.Xml.XmlReader), method.IsVirtual=True, declaring type = Microsoft.VisualStudio.Services.Common.SerializableDictionary`2[System.String,System.String]
method name=Void WriteXml(System.Xml.XmlWriter), method.IsVirtual=True, declaring type = Microsoft.VisualStudio.Services.Common.SerializableDictionary`2[System.String,System.String]
Cached Result
Last Run: 4:19:53 am
Compile: 0.383s
Execute: 0.2s
Memory: 20.34Mb
CPU: 0.583s