Inheritance: JsonSerializer
    private JsonSerializerProxy GetInternalSerializer()
    {
      if (_internalSerializer == null)
        _internalSerializer = new JsonSerializerProxy(this);

      return _internalSerializer;
    }
 private JsonSerializerProxy GetInternalSerializer()
 {
     if (_internalSerializer == null)
     {
         _internalSerializer = new JsonSerializerProxy(this);
     }
     return(_internalSerializer);
 }
        private JsonSerializerProxy GetInternalSerializer(List <Type> _allowableTypes = null)
        {
            if (_internalSerializer == null)
            {
                _internalSerializer = new JsonSerializerProxy(this);
            }

            return(_internalSerializer);
        }
Example #4
0
		// Token: 0x060010FA RID: 4346 RVA: 0x00060498 File Offset: 0x0005E698
		private BidirectionalDictionary<string, object> GetMappings(object context)
		{
			JsonSerializerInternalBase jsonSerializerInternalBase = context as JsonSerializerInternalBase;
			if (jsonSerializerInternalBase == null)
			{
				JsonSerializerProxy jsonSerializerProxy = context as JsonSerializerProxy;
				if (jsonSerializerProxy == null)
				{
					throw new JsonException("The DefaultReferenceResolver can only be used internally.");
				}
				jsonSerializerInternalBase = jsonSerializerProxy.GetInternalSerializer();
			}
			return jsonSerializerInternalBase.DefaultReferenceMappings;
		}
Example #5
0
        private BidirectionalDictionary <string, object> GetMappings(object context)
        {
            JsonSerializerInternalBase internalSerializer = context as JsonSerializerInternalBase;

            if (internalSerializer == null)
            {
                JsonSerializerProxy proxy = context as JsonSerializerProxy;
                if (proxy != null)
                {
                    internalSerializer = proxy.GetInternalSerializer();
                }
                else
                {
                    throw new JsonException("The DefaultReferenceResolver can only be used internally.");
                }
            }

            return(internalSerializer.DefaultReferenceMappings);
        }
        private JsonSerializerProxy GetInternalSerializer()
        {
            if (InternalSerializer == null)
            {
                InternalSerializer = new JsonSerializerProxy(this);
            }

            return InternalSerializer;
        }