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