AmitDiwan has Published 10740 Articles

Console.ReadLine() Method in C#

AmitDiwan

AmitDiwan

Updated on 14-Nov-2019 05:55:46

1K+ Views

The Console.ReadLine() method in C# is used to read the next line of characters from the standard input stream.SyntaxThe syntax is as follows −public static string ReadLine ();ExampleLet us now see an example to implement the Console.ReadLine() method in C# −using System; public class Demo{    public static void Main(){ ... Read More

Console.Read() Method in C#

AmitDiwan

AmitDiwan

Updated on 14-Nov-2019 05:53:00

1K+ Views

The Console.Read() method in C# is used to read the next character from the standard input stream.SyntaxThe syntax is as follows −public static int Read ();ExampleLet us now see an example to implement the Console.Read() method in C# −using System; public class Demo{    public static void Main(){     ... Read More

Console.MoveBufferArea() Method in C#

AmitDiwan

AmitDiwan

Updated on 14-Nov-2019 05:50:40

321 Views

The Console.MoveBufferArea() method in C# is used to copy a specified source area of the screen buffer to a specified destination area.SyntaxThe syntax is as follows −public static void MoveBufferArea (int sourceLeft, int sourceTop, int sourceWidth, int sourceHeight, int targetLeft, int targetTop);Here, sourceLeft             The leftmost ... Read More

Console.KeyAvailable() Property in C#

AmitDiwan

AmitDiwan

Updated on 14-Nov-2019 05:46:44

502 Views

The Console.KeyAvailable() property in C# is used to get a value indicating whether a key press is available in the input stream.SyntaxThe syntax is as follows −public static bool KeyAvailable { get; }ExampleLet us now see an example to implement the Console.KeyAvailable() property in C# −using System; using System.Threading; class ... Read More

Console Class in C#

AmitDiwan

AmitDiwan

Updated on 14-Nov-2019 05:41:46

2K+ Views

The Console class in C# is used to represent the standard input, output, and error streams for console applications.Let us see some examples of Console class properties in C# −Console.CursorLeft propertyTo change the CursorLeft of the Console in C#, use the Console.CursorLeft property.ExampleLet us see an example −using System; class ... Read More

Decimal Struct in C#

AmitDiwan

AmitDiwan

Updated on 14-Nov-2019 05:37:27

457 Views

The Decimal Struct in C# Represents a decimal floating-point number. The Decimal value type represents decimal numbers ranging from positive 79, 228, 162, 514, 264, 337, 593, 543, 950, 335 to negative 79, 228, 162, 514, 264, 337, 593, 543, 950, 335. The default value of a Decimal is 0.Let ... Read More

UInt64 Struct in C#

AmitDiwan

AmitDiwan

Updated on 14-Nov-2019 05:34:04

457 Views

The UInt64 struct represents a 64-bit unsigned integer. The UInt64 value type represents unsigned integers with values ranging from 0 to 18, 446, 744, 073, 709, 551, 615.Let us now see some examples of UInt64 Struct methods −UInt64.CompareTo()The UInt64.CompareTo() method in C# is used to compare the current instance to ... Read More

Uri.IsWellFormedOriginalString() Method in C#

AmitDiwan

AmitDiwan

Updated on 14-Nov-2019 05:26:59

108 Views

The Uri.IsWellFormedOriginalString() method in C# indicates whether the string used to construct this Uri was well-formed and is not required to be further escaped.SyntaxFollowing is the syntax −public bool IsWellFormedOriginalString ();ExampleLet us now see an example to implement the Uri.IsWellFormedOriginalString() method −using System; public class Demo {    public static ... Read More

Uri.IsHexEncoding() Method in C#

AmitDiwan

AmitDiwan

Updated on 14-Nov-2019 05:24:17

98 Views

The Uri.IsHexEncoding() method in C# determines whether a character in a string is hexadecimal encoded.SyntaxFollowing is the syntax −public static bool IsHexEncoding (string pattern, int index);Above, the pattern parameter is the string to check, whereas the index is the location in pattern to check for hexadecimal encoding.ExampleLet us now see ... Read More

UInt16.MinValue Field in C# with Examples

AmitDiwan

AmitDiwan

Updated on 13-Nov-2019 07:42:02

172 Views

The UInt16.MinValue field in C# represents the minimum possible value of the 16-bit unsigned integer.SyntaxFollowing is the syntax −public const ushort MinValue = 0;ExampleLet us now see an example to implement the UInt16.MinValue field −using System; public class Demo {    public static void Main(){       ushort val1 ... Read More

Advertisements