Holds a name and value text pair
View code on GitHub
Namespace: DeltaEngine.Content.XmlAssembly: DeltaEngine.Content.Xml (in DeltaEngine.Content.Xml.dll) Version: 1.1.1.0 (1.1.1)
Syntax
The XmlAttribute type exposes the following members.
Constructors
Name | Description | |
---|---|---|
XmlAttribute | Initializes a new instance of the XmlAttribute class |
Fields
Name | Description | |
---|---|---|
Name | ||
Value |
Remarks
Examples
[Test] public void ConstructorWithObject() { var attribute = new XmlAttribute("name", DayOfWeek.Friday); Assert.AreEqual("name", attribute.Name); Assert.AreEqual("Friday", attribute.Value); }
[Test] public void ConstructorWithFloat() { var attribute = new XmlAttribute("name", 2.1f); Assert.AreEqual("name", attribute.Name); Assert.AreEqual("2.1", attribute.Value); }
[Test] public void ConstructorWithDouble() { var attribute = new XmlAttribute("name", 3.14); Assert.AreEqual("name", attribute.Name); Assert.AreEqual("3.14", attribute.Value); }
See Also