Example #1
0
 private void AddNonThreadSafe(string ns, XmlSchemaCollectionNode?node)
 {
     if (_collection[ns] != null)
     {
         _collection.Remove(ns);
     }
     _collection.Add(ns, node);
 }
Example #2
0
 public XmlSchema?this[string?ns]
 {
     get
     {
         XmlSchemaCollectionNode?node = (XmlSchemaCollectionNode?)_collection[(ns != null) ? ns : string.Empty];
         return((node != null) ? node.Schema : null);
     }
 }
Example #3
0
 /// <summary>
 /// Looks up the schema by its associated namespace URI
 /// </summary>
 public XmlSchema?this[string?ns]
 {
     get
     {
         XmlSchemaCollectionNode?node = (XmlSchemaCollectionNode?)_collection[ns ?? string.Empty];
         return(node?.Schema);
     }
 }
Example #4
0
 private void Add(string ns, XmlSchemaCollectionNode?node)
 {
     if (_isThreadSafe)
     {
         lock (_wLock !)
         {
             AddNonThreadSafe(ns, node);
         }
     }
     else
     {
         AddNonThreadSafe(ns, node);
     }
 }
Example #5
0
        internal SchemaInfo?GetSchemaInfo(string?ns)
        {
            XmlSchemaCollectionNode?node = (XmlSchemaCollectionNode?)_collection[(ns != null) ? ns : string.Empty];

            return((node != null) ? node.SchemaInfo : null);
        }
Example #6
0
        internal SchemaInfo?GetSchemaInfo(string?ns)
        {
            XmlSchemaCollectionNode?node = (XmlSchemaCollectionNode?)_collection[ns ?? string.Empty];

            return(node?.SchemaInfo);
        }