selam, kolay bir mantığı var aslında.. bir döngü ile halledebilirsin.. şöyle bir örnek buldum..
public static string ReadLimited(int limit)
{
string str = string.Empty;
while (true)
{
char c = Console.ReadKey(true).KeyChar;
if (c == '\r')
break;
if (c == '\b' )
{
if (str != "")
{
str = str.Substring(0, str.Length - 1);
Console.Write("\b \b");
}
}
else if (str.Length < limit)
{
Console.Write(c);
str += c;
}
}
return str;
}bunun daha basit yolları da var ama bu daha iyi kodu ...
daha fazla ayrıntı ve örnek için buraya bakabilirsin
http://stackoverflow.com/questions/6723755/limiting-the-input-in-the-console
kolay gelsin