private static IEnumerable<string> GetReqSectionList()
{
if ( Directory.Exists( Paths.ReqPath ) ) {
string[] sections = Directory.GetFiles( Paths.ReqPath, "*.txt", SearchOption.TopDirectoryOnly )
.Select( name => Path.GetFileNameWithoutExtension( name ) )
.Where( name => !String.IsNullOrEmpty( name ) )
.ToArray();
if ( sections.Length != 0 ) {
return sections;
}
}
return null;
}