Exemplo n.º 1
0
        public static JsonSerializer Create(JsonSerializerSettings settings)
        {
            JsonSerializer jsonSerializer = new JsonSerializer();

            if (settings != null)
            {
                JsonSerializer.ApplySerializerSettings(jsonSerializer, settings);
            }
            return(jsonSerializer);
        }
        public static JsonSerializer CreateDefault(JsonSerializerSettings settings)
        {
            JsonSerializer jsonSerializer = JsonSerializer.CreateDefault();

            if (settings != null)
            {
                JsonSerializer.ApplySerializerSettings(jsonSerializer, settings);
            }
            return(jsonSerializer);
        }
Exemplo n.º 3
0
        // Token: 0x06000B16 RID: 2838 RVA: 0x00040FA8 File Offset: 0x0003F1A8
        public static JsonSerializer Create([Nullable(2)] JsonSerializerSettings settings)
        {
            JsonSerializer jsonSerializer = JsonSerializer.Create();

            if (settings != null)
            {
                JsonSerializer.ApplySerializerSettings(jsonSerializer, settings);
            }
            return(jsonSerializer);
        }