private getTorznabElement ( string name, object value ) : System.Xml.Linq.XElement | ||
name | string | |
value | object | |
리턴 | System.Xml.Linq.XElement |
XElement getTorznabElement(string name, object value)
{
return value == null ? null : new XElement(torznabNs + "attr", new XAttribute("name", name), new XAttribute("value", value));
}