static void Main(string[] args) { /*Tempera temp1 = new Tempera(ConsoleColor.Blue, "Bic", 123); * Console.WriteLine(Tempera.mostrar(temp1));*/ Paleta paleta = 3; Console.WriteLine((string)paleta); Console.ReadKey(); }
public static int buscar(Paleta p, Tempera t) { if (!Object.Equals(p, null) && t != null) { for (int i = 0; i < p.colores.Length; i++) { if (p.colores[i] == t) { return(i); } } } return(-1); }