Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

C# Read() and ReadKey()

using System;
 namespace Sample
{
	class Test
	{
		public static void Main(string[] args)
		{
			int userInput;

			Console.WriteLine("Press any key to continue...");
			Console.ReadKey();
			Console.WriteLine();

			Console.Write("Input using Read() - ");
			userInput = Console.Read();
			Console.WriteLine("Ascii Value = {0}",userInput);
		}
	}
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: prevent system shutdown c# 
Csharp :: c# parse number from string 
Csharp :: get int value from enum c# 
Csharp :: on collision unity 
Csharp :: c# chunk array 
Csharp :: append an array in c# 
Csharp :: c# recursion formula for the factorial 
Csharp :: c# get witdh of matrix 
Csharp :: unity lerp 
Csharp :: how to display array in string in c# 
Csharp :: mysql: [Warning] Using a password on the command line interface can be insecure. 
Csharp :: c# get set 
Csharp :: interface property implementation c# 
Csharp :: get min date in list c# 
Csharp :: how to fix on GetMouseButtonDown activating UI unity 
Csharp :: finding values in the registry 
Csharp :: Code to disable Debug.log 
Csharp :: unity audio source 
Csharp :: group-by-in-linq 
Csharp :: c# compare dateTime with string 
Csharp :: C# How to make a field read-only outside of class 
Csharp :: ASP.net ApplicationUser referance not found 
Csharp :: decimal operator in Convert.toDouble() C# 
Csharp :: multiply structs c# 
Csharp :: how to find length of list c# 
Csharp :: blazor clientside cookies 
Csharp :: invalidoperationexception c# ui thread 
Csharp :: disable alt + f4 in c# forms 
Csharp :: how to access resources in c# 
Csharp :: C# get filebase name 
ADD CONTENT
Topic
Content
Source link
Name
6+7 =