コード例 #1
0
        public override bool Execute()
        {
            var result = ExpressionHasherWriter.Write(InputFiles.Select(c => c.ItemSpec).ToArray());

            File.WriteAllText(OutputFile.ItemSpec, result);

            return(true);
        }
コード例 #2
0
        public void TestHasher()
        {
            var paths = Directory.EnumerateFiles(@"..\..\..\..\src\Shaolinq", "*.cs", SearchOption.AllDirectories)
                        .Where(c => !Path.GetFileName(c).StartsWith("Generated")).ToArray();

            var s = ExpressionHasherWriter.Write(paths);

            Console.WriteLine(s);
        }