예제 #1
0
 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);
 }
예제 #2
0
 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));
 }
예제 #3
0
 public object GetDeserializedObject(object obj, Type targetType)
 {
     return(_provider.GetDeserializedObject(obj, targetType));
 }