public static String ToString(int number, int width = 1, int height = 1) { LCD lcd = new LCD(width, height); foreach (char digitAsChar in number.ToString()) { var digit = int.Parse(digitAsChar.ToString()); lcd.Add(digit); } return(lcd.ToString()); }
static void Main(string[] args) { Console.Write(LCD.ToString(456, 2, 2)); Console.ReadKey(); }