Пример #1
0
 public override object?ReadJsonValueCore(XmlReaderDelegator jsonReader, XmlObjectSerializerReadContextComplexJson?context)
 {
     if (context == null)
     {
         return(TryReadNullAtTopLevel(jsonReader) ? null : jsonReader.ReadElementContentAsQName());
     }
     else
     {
         return(HandleReadValue(jsonReader.ReadElementContentAsQName(), context));
     }
 }
 public override object ReadJsonValueCore(XmlReaderDelegator jsonReader, XmlObjectSerializerReadContextComplexJson context)
 {
     if (context == null)
     {
         return TryReadNullAtTopLevel(jsonReader) ? null : jsonReader.ReadElementContentAsQName();
     }
     else
     {
         return HandleReadValue(jsonReader.ReadElementContentAsQName(), context);
     }
 }
 public override object ReadJsonValueCore(XmlReaderDelegator jsonReader, XmlObjectSerializerReadContextComplexJson context)
 {
     if (context != null)
     {
         return(JsonDataContract.HandleReadValue(jsonReader.ReadElementContentAsQName(), context));
     }
     if (!JsonDataContract.TryReadNullAtTopLevel(jsonReader))
     {
         return(jsonReader.ReadElementContentAsQName());
     }
     return(null);
 }