internal static object GetObjectToSerialize(ISerializationSurrogateProvider surrogateProvider, object obj, Type objType, Type membertype)
 {
     if (obj == null)
         return null;
     if (DataContract.GetBuiltInDataContract(objType) != null)
         return obj;
     return surrogateProvider.GetObjectToSerialize(obj, membertype);
 }
Exemple #2
0
 internal static object GetObjectToSerialize(ISerializationSurrogateProvider surrogateProvider, object obj, Type objType, Type membertype)
 {
     if (obj == null)
     {
         return(null);
     }
     if (DataContract.GetBuiltInDataContract(objType) != null)
     {
         return(obj);
     }
     return(surrogateProvider.GetObjectToSerialize(obj, membertype));
 }
Exemple #3
0
 public object GetObjectToSerialize(object obj, Type targetType)
 {
     return(_provider.GetObjectToSerialize(obj, targetType));
 }