public Context(TextWriter writer, PropertyFormattingRulesCollection propertyFormattingRulesCollection) { _writer = writer; _propertyFormattingRulesCollection = propertyFormattingRulesCollection; _nesting.Add(new Nesting()); ApplyRule(); }
/// <summary> /// Initializes an instance of the <see cref="JsonFormatter"/> Type /// </summary> /// <param name="propertyFormattingRulesCollection"></param> public JsonFormatter(PropertyFormattingRulesCollection propertyFormattingRulesCollection = null) { PropertyFormattingRulesCollection = propertyFormattingRulesCollection ?? new PropertyFormattingRulesCollection(); }