internal static object GetDeserializedObject(ISerializationSurrogateProvider surrogateProvider, object obj, Type objType, Type memberType) { if (obj == null) return null; if (DataContract.GetBuiltInDataContract(objType) != null) return obj; return surrogateProvider.GetDeserializedObject(obj, memberType); }
internal static object GetDeserializedObject(ISerializationSurrogateProvider surrogateProvider, object obj, Type objType, Type memberType) { if (obj == null) { return(null); } if (DataContract.GetBuiltInDataContract(objType) != null) { return(obj); } return(surrogateProvider.GetDeserializedObject(obj, memberType)); }
public object GetDeserializedObject(object obj, Type targetType) { return(_provider.GetDeserializedObject(obj, targetType)); }