Пример #1
0
 internal void AddRef(ArrayList list, XmlSchemaObject o)
 {
     if (o == null)
     {
         return;
     }
     if (schemas.IsReference(o))
     {
         return;
     }
     if (o.Parent is XmlSchema)
     {
         string ns = ((XmlSchema)o.Parent).TargetNamespace;
         if (ns == XmlSchema.Namespace)
         {
             return;
         }
         if (list.Contains(o))
         {
             return;
         }
         list.Add(o);
     }
 }