internal XmlQualifiedName GetStableName(Type clrType)
{
#if SUPPORT_SURROGATE
if (_dataContractSurrogate != null)
{
Type dcType = DataContractSurrogateCaller.GetDataContractType(_dataContractSurrogate, clrType);
//if (clrType.IsValueType != dcType.IsValueType)
// throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.ValueTypeMismatchInSurrogatedType, dcType, clrType)));
return DataContract.GetStableName(dcType);
}
#endif
return DataContract.GetStableName(clrType);
}