Ejemplo n.º 1
0
        public JsonSerializationOptions(JsonSerializationOptions options)
        {
            if (options != null)
            {
                this.IgnoreNullObjects      = options.IgnoreNullObjects;
                this.IgnoreEmptyStrings     = options.IgnoreEmptyStrings;
                this.ConvertEnumsToString   = options.ConvertEnumsToString;
                this.IgnoreEmptyCollections = options.IgnoreEmptyCollections;

                this.UseIndentation = options.UseIndentation;
                this.Indent         = options.Indent;
                this.CurrentIndent  = options.CurrentIndent + Indent;
            }
        }
Ejemplo n.º 2
0
 public static JsonSerializationOptions From(JsonSerializationOptions options)
 {
     return(new JsonSerializationOptions(options));
 }