Get the node type for XAttribute in CSharp
Description
The following code shows how to get the node type for XAttribute.
Example
//from w ww . ja v a 2 s .com
using System;
using System.Linq;
using System.Xml;
using System.Xml.Linq;
using System.Collections;
using System.Collections.Generic;
public class MainClass
{
public static void Main()
{
XElement root = new XElement("Root",
new XAttribute("Att", "content")
);
XAttribute att = root.FirstAttribute;
Console.WriteLine(att.NodeType);
}
}