private static PrintCoordinates ( int x, int y, ConsoleColor textColor ) : void | ||
x | int | |
y | int | |
textColor | ConsoleColor | |
return | void |
private static void PrintCoordinates(int x, int y, ConsoleColor textColor)
{
ConsoleColor oldForegoundColor = Console.ForegroundColor;
Console.ForegroundColor = textColor;
Console.Write("({0},{1})", x, y);
Console.ForegroundColor = oldForegoundColor;
}