using System;
public class Test
{
public static void Main()
{
ConsoleColor rojo = ConsoleColor.Red;
// General: G o g
Console.WriteLine(rojo.ToString("g"));
// Representación de suma de miembros: F o f
ConsoleColor rojoAzul = ConsoleColor.Red | ConsoleColor.Blue;
Console.WriteLine(rojoAzul.ToString("f"));
// Valor decimal: D o d
Console.WriteLine(rojo.ToString("d"));
// Valor hexadecimal: X o x
Console.WriteLine(rojo.ToString("x"));
}
}
dXNpbmcgU3lzdGVtOwoKcHVibGljIGNsYXNzIFRlc3QKewoJcHVibGljIHN0YXRpYyB2b2lkIE1haW4oKQoJewoJCUNvbnNvbGVDb2xvciByb2pvID0gQ29uc29sZUNvbG9yLlJlZDsKCgkJLy8gR2VuZXJhbDogRyBvIGcgCgkJQ29uc29sZS5Xcml0ZUxpbmUocm9qby5Ub1N0cmluZygiZyIpKTsKCQkKCQkvLyBSZXByZXNlbnRhY2nDs24gZGUgc3VtYSBkZSBtaWVtYnJvczogRiBvIGYgCgkJQ29uc29sZUNvbG9yIHJvam9BenVsID0gQ29uc29sZUNvbG9yLlJlZCB8IENvbnNvbGVDb2xvci5CbHVlOwoJCUNvbnNvbGUuV3JpdGVMaW5lKHJvam9BenVsLlRvU3RyaW5nKCJmIikpOwoJCQoJCS8vIFZhbG9yIGRlY2ltYWw6IEQgbyBkIAoJCUNvbnNvbGUuV3JpdGVMaW5lKHJvam8uVG9TdHJpbmcoImQiKSk7CgkJCgkJLy8gVmFsb3IgaGV4YWRlY2ltYWw6IFggbyB4IAoJCUNvbnNvbGUuV3JpdGVMaW5lKHJvam8uVG9TdHJpbmcoIngiKSk7Cgl9Cn0=