コード例 #1
0
 private bool equals (Namespace n)
 {
     return Uri.Equals (n.Uri);
 }
コード例 #2
0
 public object ToDefaultXmlNamespace(Context cx, object uriValue)
 {
     return(Namespace.Parse(this, cx, uriValue));
 }
コード例 #3
0
ファイル: XML.cs プロジェクト: arifbudiman/TridionMinifier
 /// <summary>
 /// XML.prototype.namespaceDeclarations ( )
 /// 
 /// The namespaceDeclarations method returns an Array of Namespace objects
 /// representing the namespace declarations associated with this XML
 /// object in the context of its parent. If the parent of this XML object 
 /// is modified, the associated namespace declarations may change.
 /// 
 /// See ECMA 13.4.4.24
 /// </summary>		
 internal object[] NamespaceDeclarations()
 {
     ArrayList namespaceDeclarations = new ArrayList ();
     foreach (XmlAttribute attr in UnderlyingNode.Attributes) {
         if (attr.LocalName == "xmlns") {
             Namespace ns = new Namespace (lib, attr.Prefix, attr.InnerText);
             if (!namespaceDeclarations.Contains (ns))
                 namespaceDeclarations.Add (ns);
         }
     }
     return (object [])namespaceDeclarations.ToArray ();
 }
コード例 #4
0
ファイル: Namespace.cs プロジェクト: lichuan80/EcmaScript.NET
 private bool equals(Namespace n)
 {
     return(Uri.Equals(n.Uri));
 }