Could anyone please clarify my doubts?
Scenario: i want to check more than one extension files exists in a given path in a single condition.
DirectoryInfo projectInfo = new DirectoryInfo(projectPath);
string projectFileType = "*.vbproj,*.csproj,*.master,*.aspx";
if (projectFileType != string.Empty)
{
FileInfo[] projFiles = projectInfo.GetFiles(projectFileType, SearchOption.AllDirectories);
}
Thanks in Advance!!