Пример #1
0
        string[] TryGetProjectFiles(DirectoryInfo dirInfo)   //3 td
        {
            var st = MyFileWorker.EnumerateFiles(dirInfo.FullName, "*.csproj", SearchOption.AllDirectories).ToArray();

            if (st.Count() == 0)
            {
                st = MyFileWorker.EnumerateFiles(dirInfo.FullName, "*.vbproj", SearchOption.AllDirectories).ToArray();
            }
            return(st);
        }