internal static DataContract GetRevisedItemContract(DataContract oldItemContract)
{
if ((oldItemContract != null) &&
oldItemContract.UnderlyingType.GetTypeInfo().IsGenericType &&
(oldItemContract.UnderlyingType.GetGenericTypeDefinition() == Globals.TypeOfKeyValue))
{
return DataContract.GetDataContract(oldItemContract.UnderlyingType);
}
return oldItemContract;
}
internal override DataContract GetDataContract(RuntimeTypeHandle typeHandle, Type type)