protected void Save(CsFile file, CsClass cl, params string[] subDirs) { var a = new List <string> { BasePath.FullName }; a.AddRange(subDirs); a.Add(cl.GetShortName()); var fileName = Path.Combine(a.ToArray()); file.SaveIfDifferent(fileName); }