public bool IsOk(FileSystemInfo info) { if (CountCode.IsDir(info)) { return(true); } return(info.Extension == ".cs"); }
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); }
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(); }