System.Xml.Schema.XmlSchemaAnyAttribute.Intersection C# (CSharp) Method

Intersection() static private method

static private Intersection ( XmlSchemaAnyAttribute o1, XmlSchemaAnyAttribute o2, bool v1Compat ) : XmlSchemaAnyAttribute
o1 XmlSchemaAnyAttribute
o2 XmlSchemaAnyAttribute
v1Compat bool
return XmlSchemaAnyAttribute
        internal static XmlSchemaAnyAttribute Intersection(XmlSchemaAnyAttribute o1, XmlSchemaAnyAttribute o2, bool v1Compat) {
            NamespaceList nsl = NamespaceList.Intersection(o1.NamespaceList, o2.NamespaceList, v1Compat);
            if (nsl != null) {
                XmlSchemaAnyAttribute anyAttribute = new XmlSchemaAnyAttribute();
                anyAttribute.namespaceList = nsl;
                anyAttribute.ProcessContents = o1.ProcessContents;
                anyAttribute.Annotation = o1.Annotation;
                return anyAttribute;
            }
            else {
                // not expressible
                return null;
            }
        }