static ConsoleColor GetColor(UVDirectoryEntityType type) { switch (type) { case UVDirectoryEntityType.Directory: return ConsoleColor.Yellow; case UVDirectoryEntityType.Link: return ConsoleColor.Blue; case UVDirectoryEntityType.File: return ConsoleColor.White; } throw new Exception("If you encounter a new file type, please add an appropriate color!"); }
static ConsoleColor GetColor(UVDirectoryEntityType type) { switch (type) { case UVDirectoryEntityType.Directory: return(ConsoleColor.Yellow); case UVDirectoryEntityType.Link: return(ConsoleColor.Blue); case UVDirectoryEntityType.File: return(ConsoleColor.White); } throw new Exception("If you encounter a new file type, please add an appropriate color!"); }