Exemple #1
0
 public LineColumnRule With(
     int? lines = null, int? spaces = null, int? indentation = null,
     LineOperations? lineOperation = null, SpaceOperations? spaceOperation = null, IndentationOperations? indentationOperation = null)
 {
     return new LineColumnRule
     {
         SpaceOperation = spaceOperation == null ? this.SpaceOperation : spaceOperation.Value,
         LineOperation = lineOperation == null ? this.LineOperation : lineOperation.Value,
         IndentationOperation = indentationOperation == null ? this.IndentationOperation : indentationOperation.Value,
         Lines = lines == null ? this.Lines : lines.Value,
         Spaces = spaces == null ? this.Spaces : spaces.Value,
         Indentation = indentation == null ? this.Indentation : indentation.Value
     };
 }
Exemple #2
0
 public LineColumnRule(
     SpaceOperations spaceOperation,
     LineOperations lineOperation,
     IndentationOperations indentationOperation,
     int lines,
     int spaces,
     int indentation)
 {
     SpaceOperation       = spaceOperation;
     LineOperation        = lineOperation;
     IndentationOperation = indentationOperation;
     Lines       = lines;
     Spaces      = spaces;
     Indentation = indentation;
 }