fCraft.BuildingCommands.GetFontSectionList C# (CSharp) Method

GetFontSectionList() private static method

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