Lines Matching defs:Settings
71 public static JsonFormatter Default { get; } = new JsonFormatter(Settings.Default);
74 private static readonly JsonFormatter diagnosticFormatter = new JsonFormatter(Settings.Default);
126 private readonly Settings settings;
134 public JsonFormatter(Settings settings)
784 /// Settings controlling JSON formatting.
786 public sealed class Settings
791 public static Settings Default { get; }
795 static Settings()
797 Default = new Settings(false);
820 /// Creates a new <see cref="Settings"/> object with the specified formatting of default values
824 public Settings(bool formatDefaultValues) : this(formatDefaultValues, TypeRegistry.Empty)
829 /// Creates a new <see cref="Settings"/> object with the specified formatting of default values
834 public Settings(bool formatDefaultValues, TypeRegistry typeRegistry) : this(formatDefaultValues, typeRegistry, false)
839 /// Creates a new <see cref="Settings"/> object with the specified parameters.
844 private Settings(bool formatDefaultValues,
854 /// Creates a new <see cref="Settings"/> object with the specified formatting of default values and the current settings.
857 public Settings WithFormatDefaultValues(bool formatDefaultValues) => new Settings(formatDefaultValues, TypeRegistry, FormatEnumsAsIntegers);
860 /// Creates a new <see cref="Settings"/> object with the specified type registry and the current settings.
863 public Settings WithTypeRegistry(TypeRegistry typeRegistry) => new Settings(FormatDefaultValues, typeRegistry, FormatEnumsAsIntegers);
866 /// Creates a new <see cref="Settings"/> object with the specified enums formatting option and the current settings.
869 public Settings WithFormatEnumsAsIntegers(bool formatEnumsAsIntegers) => new Settings(FormatDefaultValues, TypeRegistry, formatEnumsAsIntegers);