public ChangeType ( object value, |
||
value | object | |
targetType | ||
return | object |
public virtual object ChangeType(object value, Type targetType) {
if (value == null) {
throw new ArgumentNullException("value");
}
if (targetType == null) {
throw new ArgumentNullException("targetType");
}
return ValueConverter.ChangeType(value, targetType);
}
XmlSchemaDatatype::ChangeType ( object value, |
internal override bool MatchEnumeration(object value, ArrayList enumeration, XmlSchemaDatatype datatype) { return MatchEnumeration((string)datatype.ChangeType(value, XTypedServices.typeOfString), enumeration, datatype); }