internal override int Compare(object value1, object value2)
{
XsdSimpleValue simpleValue1 = value1 as XsdSimpleValue;
XsdSimpleValue simpleValue2 = value2 as XsdSimpleValue;
if (simpleValue1 == null || simpleValue2 == null)
{
return -1;
}
XmlSchemaType schemaType1 = simpleValue1.XmlType;
XmlSchemaType schemaType2 = simpleValue2.XmlType;
if (schemaType1 == schemaType2)
{
XmlSchemaDatatype datatype = schemaType1.Datatype;
return datatype.Compare(simpleValue1.TypedValue, simpleValue2.TypedValue);
}
return -1;
}