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

Union() static private method

static private Union ( XmlSchemaAnyAttribute o1, XmlSchemaAnyAttribute o2, bool v1Compat ) : XmlSchemaAnyAttribute
o1 XmlSchemaAnyAttribute
o2 XmlSchemaAnyAttribute
v1Compat bool
return XmlSchemaAnyAttribute
        internal static XmlSchemaAnyAttribute Union(XmlSchemaAnyAttribute o1, XmlSchemaAnyAttribute o2, bool v1Compat) {
            NamespaceList nsl = NamespaceList.Union(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;
            }
        }
    }