XmlData GetAttributesAsDictionary Method Delta Engine Documentation

Namespace: DeltaEngine.Content.Xml
Assembly: DeltaEngine.Content.Xml (in DeltaEngine.Content.Xml.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public Dictionary<string, string> GetAttributesAsDictionary()

Return Value

Type: Dictionary String, String 
Remarks

Tests: DeltaEngine.Content.Xml.Tests.XmlDataTests
Examples

1 unit tests call DeltaEngine.Content.Xml.XmlData.GetAttributesAsDictionary
[Test]
public void GetAttributesAsDictionary()
{
    XmlData root = CreateDeepTestXmlData();
    var dict = root.Children[0].GetAttributesAsDictionary();
    Assert.AreEqual(2, dict.Count);
    Assert.AreEqual("Value1", dict["Attr1"]);
    Assert.AreEqual("Value2", dict["Attr2"]);
}
See Also