コード例 #1
0
        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
        }
コード例 #2
0
ファイル: WebMessageFormatter.cs プロジェクト: LevNNN/mono
		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
		}