internal override bool MatchEnumeration(object value, ArrayList enumeration, XmlSchemaDatatype datatype) { return MatchEnumeration((string)datatype.ChangeType(value, XTypedServices.typeOfString), enumeration, datatype); }
private bool MatchEnumeration(double value, ArrayList enumeration, XmlSchemaDatatype datatype) { foreach (object correctValue in enumeration) { if (value == (double)datatype.ChangeType(correctValue, typeof(double))) { return true; } } return false; }
internal override bool MatchEnumeration(object value, ArrayList enumeration, XmlSchemaDatatype datatype) { return MatchEnumeration((DateTime)datatype.ChangeType(value, typeof(DateTime)), enumeration, datatype); }
internal bool MatchEnumeration(decimal value, ArrayList enumeration, XmlSchemaDatatype datatype) { foreach (object correctValue in enumeration) { if (value == (decimal)datatype.ChangeType(correctValue, typeof(decimal))) { return true; } } return false; }