Esempio n. 1
0
        public bool IsOk(FileSystemInfo info)
        {
            if (CountCode.IsDir(info))
            {
                return(true);
            }

            return(info.Extension == ".cs");
        }
Esempio n. 2
0
        public static void MainEx2()
        {
            var countCode = new CountCode();

            countCode.AddCondition(new CsFileTarget());
            var dir = "E:/hpl_projects/unity_projects/voxel3dcolor/Assets";

            countCode.Add(Path.Combine(dir, "_Common"));
            countCode.Add(Path.Combine(dir, "_PiexlColorNumber"));
            int sum = countCode.Count();

            System.Console.WriteLine("sum: " + sum);
        }
Esempio n. 3
0
        public static void MainEx()
        {
            var countCode = new CountCode();

            countCode.AddCondition(new CsFileTarget());
            countCode.Add(Path.Combine("E:/projects/unity/slots.crazyletter/Assets", "_Common"));
            countCode.Add(Path.Combine("E:/projects/unity/slots.crazyletter/Assets", "_Dev"));
            countCode.Add(Path.Combine("E:/projects/unity/slots.crazyletter/Assets", "_GameBundles"));
            countCode.Add(Path.Combine("E:/projects/unity/slots.crazyletter/Assets", "_LuckyVegas"));
            countCode.Add(Path.Combine("E:/projects/unity/slots.crazyletter/Assets", "_SlotGameTookit"));
            countCode.Add(Path.Combine("E:/projects/unity/slots.crazyletter/Assets", "_Slots"));
            int sum = countCode.Count();
        }