getch() in C# (original) (raw)

? ?

Find posts by author

Type username to filter posts in this community

LiveJournal

Is there anything wrong with the following to emulate getch() (aside from not handling exceptions) using .NET 2.0?

using System;

public class Input { static void Main(string[] args) { char ch = getch(); Console.WriteLine("You entered: {0}", ch); }

static char getch()
{
    ConsoleKeyInfo cki = Console.ReadKey(true);
    return cki.KeyChar;
}

}

Hello. I want to share with you my open source project. The purpose of my project is to demonstrate my visual filter builder WPF control in use.…

http://jobsattmp.com/new-york/web-development/dba-sql-server-2005_2008-jobs Hey all, I am trying to hire a DBA in NYC that has a background in MS…

I was always impressed by the bing.com image search AJAX. The bit where where more images load as you scroll down the page. Is there an AJAX control…