System.Xml.Schema.UnionFacetsChecker.MatchEnumeration C# (CSharp) Method

MatchEnumeration() private method

private MatchEnumeration ( object value, ArrayList enumeration, XmlSchemaDatatype datatype ) : bool
value object
enumeration System.Collections.ArrayList
datatype XmlSchemaDatatype
return bool
        internal override bool MatchEnumeration(object value, ArrayList enumeration, XmlSchemaDatatype datatype) {
            foreach(object correctValue in enumeration) {
                if (datatype.Compare(value, correctValue) == 0) { //Compare on Datatype_union will compare two XsdSimpleValue
                    return true;
                }
            }
            return false;
        }
    }