System.Xml.Schema.XmlSchemaObjectCollection.Contains C# (CSharp) Méthode

Contains() public méthode

public Contains ( XmlSchemaObject item ) : bool
item XmlSchemaObject
Résultat bool
        public bool Contains(XmlSchemaObject item) {
            return List.Contains(item);
        }
        

Usage Example

Exemple #1
0
 void AddExternalComponentsTo(XmlSchema s, XmlSchemaObjectCollection items, ValidationEventHandler handler, List <CompiledSchemaMemo> handledUris, XmlResolver resolver, XmlSchemaSet col)
 {
     foreach (XmlSchemaExternal ext in s.Includes)
     {
         s.ProcessExternal(handler, handledUris, resolver, ext, col);
     }
     foreach (XmlSchemaObject obj in s.compilationItems)
     {
         items.Add(obj);
     }
     // Items might be already resolved (recursive schema imports), or might not be (other cases), so we add items only when appropriate here. (duplicate check is anyways done elsewhere)
     foreach (XmlSchemaObject obj in s.Items)
     {
         if (!items.Contains(obj))
         {
             items.Add(obj);
         }
     }
 }
All Usage Examples Of System.Xml.Schema.XmlSchemaObjectCollection::Contains