Ejemplo n.º 1
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);
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 3
0
 public object GetObjectToSerialize(object obj, Type targetType)
 {
     return(_provider.GetObjectToSerialize(obj, targetType));
 }