Esempio n. 1
0
 /// <summary>
 /// Constructor, internal so that external users must go through the Get() method to create an XName.
 /// </summary>
 internal XName(XNamespace ns, string localName)
 {
     this.ns        = ns;
     this.localName = XmlConvert.VerifyNCName(localName);
     this.hashCode  = ns.GetHashCode() ^ localName.GetHashCode();
 }
Esempio n. 2
0
 /// <summary>
 /// Constructor, internal so that external users must go through the Get() method to create an XName.
 /// </summary>
 internal XName(XNamespace ns, string localName)
 {
     _ns        = ns;
     _localName = XmlConvert.VerifyNCName(localName);
     _hashCode  = ns.GetHashCode() ^ localName.GetHashCode();
 }
Esempio n. 3
0
 public override int GetHashCode()
 {
     return(local.GetHashCode() ^ ns.GetHashCode());
 }