protected object ReadObjectBody(XmlObjectSerializer serializer, XmlReader reader) { #if NET_2_1 return((serializer is DataContractJsonSerializer) ? ((DataContractJsonSerializer)serializer).ReadObject(reader) : ((DataContractSerializer)serializer).ReadObject(reader, true)); #else return(serializer.ReadObject(reader, true)); #endif }
protected object ReadObjectBody (XmlObjectSerializer serializer, XmlReader reader) { #if NET_2_1 return (serializer is DataContractJsonSerializer) ? ((DataContractJsonSerializer) serializer).ReadObject (reader) : ((DataContractSerializer) serializer).ReadObject (reader, true); #else return serializer.ReadObject (reader, true); #endif }