コード例 #1
0
 public ListOutputFormatter(StandardOutputEvents output,
                            params string[] properties)
 {
     Output     = output;
     Properties = new List <string>(properties);
     MaxLength  = 0;
     foreach (var p in properties)
     {
         MaxLength = Math.Max(MaxLength, p.Length);
     }
 }
コード例 #2
0
 public ListOutputFormatter(StandardOutputEvents output,
     params string[] properties)
 {
     Output = output;
     Properties = new List<string>(properties);
     MaxLength = 0;
     foreach( var p in properties)
     {
         MaxLength = Math.Max(MaxLength, p.Length);
     }
 }