using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
ConsoleKeyInfo info = Console.ReadKey();
Console.WriteLine("info.Key : {0}", info.Key);
Console.WriteLine("info.KeyChar {0}", info.KeyChar);
int number = Convert.ToInt32(info.KeyChar);
Console.WriteLine("ASCII : {0}", number);
}
}
}
C#/수업 내용