コード例 #1
0
 public Configuration GetConfiguration()
 {
     var oneLineComment = new OneLineComment("//");
     var multiLineComment = new MultiLineComment("/*", "*/");
     List<OneLineComment> oneLineComments = new List<OneLineComment>();
     oneLineComments.Add(oneLineComment);
     List<MultiLineComment> multiLineComments = new List<MultiLineComment>();
     multiLineComments.Add(multiLineComment);
     var fileConfiguration = new FileConfiguration(oneLineComments, multiLineComments);
     var fileConfigurations = new Dictionary<string, FileConfiguration>();
     fileConfigurations["cs"] = fileConfiguration;
     return new Configuration(fileConfigurations);
 }
コード例 #2
0
ファイル: LineCounter.cs プロジェクト: sirgl/LinesCounter
 public LineCounter(IEnumerable<string> input, FileConfiguration configuration)
 {
     Input = input;
     Configuration = configuration;
 }