
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
AmitDiwan has Published 10744 Articles

AmitDiwan
10K+ Views
To change the Foreground Color of text, use the Console.ForegroundColor property in C#.ExampleLet us see an example −using System; class Demo { public static void Main (string[] args) { Console.BackgroundColor = ConsoleColor.Blue; Console.WriteLine("Background color changed = "+Console.BackgroundColor); Console.ForegroundColor = ConsoleColor.Yellow; ... Read More

AmitDiwan
181 Views
To change the BufferWidth of the Console, use the Console.BufferWidth property.ExampleLet us now see an example −using System; class Demo { public static void Main (string[] args){ Console.BufferHeight = 200; Console.WriteLine("Buffer Height = "+Console.BufferHeight); Console.BufferHeight = 250; ... Read More

AmitDiwan
2K+ Views
The Char.IsLetter() method in C# is used to indicate whether the specified Unicode character is categorized as a Unicode letter.SyntaxFollowing is the syntax −public static bool IsLetter (char ch);Above, the parameter ch is the Unicode character to evaluate.ExampleLet us now see an example to implement the Char.IsLetter() method −using System; ... Read More

AmitDiwan
169 Views
The Char.IsHighSurrogate() method in C# indicates whether the Char object at the specified position in a string is a high surrogate.SyntaxFollowing is the syntax −public static bool IsHighSurrogate (string str, int index);Above, str is a string, whereas the index is the position of the character to evaluate in str.ExampleLet us ... Read More

AmitDiwan
2K+ Views
The Char.IsDigit() method in C# indicates whether the specified Unicode character is categorized as a decimal digit.SyntaxFollowing is the syntax −public static bool IsDigit (char ch);Above, the parameter ch is the Unicode character to evaluate.ExampleLet us now see an example to implement the Char.IsDigit() method −using System; public class Demo ... Read More

AmitDiwan
83 Views
The MathF.Atan() method in C# is used to return the angle whose tangent is given as a float value argument.SyntaxFollowing is the syntax −public static float Atan (float val);Above, Val is the floating-point value.ExampleLet us now see an example to implement the MathF.Atan() method −using System; public class Demo { ... Read More

AmitDiwan
92 Views
The MathF.Asinh() method in C# is used to return the hyperbolic arc-sine of a floating-point value.SyntaxFollowing is the syntax −public static float Asinh (float val);ExampleLet us now see an example to implement the MathF.Asinh() method −using System; public class Demo { public static void Main(){ float ... Read More

AmitDiwan
83 Views
The MathF.Asin() method in C# is used to return the angle whose sine is a float value argument.SyntaxFollowing is the syntax −public static float Asin (float val);Above, Val is the float value.ExampleLet us now see an example to implement the MathF.Asin() method −using System; public class Demo { public ... Read More

AmitDiwan
115 Views
The MathF.Acosh() method in C# is used to return the hyperbolic arc-cosine of a floating-point value.SyntaxFollowing is the syntax −public static float Acosh (float val);Above, Val is the floating-point number.ExampleLet us now see an example to implement the MathF.Acosh() method −using System; public class Demo { public static void ... Read More

AmitDiwan
195 Views
The MathF.Atan2() method in C# returns the angle whose tangent is the quotient of two floating-point numbers.SyntaxFollowing is the syntax −public static float Atan2 (float val1, float val2);Above, val1 is the x-coordinate of a point, whereas val2 is the y-coordinate.ExampleLet us now see an example to implement the MathF.Atan2() method ... Read More