char min/max value

In this chapter you will learn:

  1. Find out the char min/max value

Find out the char min/max value

using System;//from j  a va2s. c  o m
class Test {

  public static void Main() {
       // First, print out the minimum values
       Console.WriteLine( "MinChar {0}", System.Char.MinValue);
       Console.WriteLine( "MaxChar {0}", System.Char.MaxValue);
  }
}

Next chapter...

What you will learn in the next chapter:

  1. How to use Char.IsDigit to find out if a char is a digit
Home » C# Tutorial » bool, char
bool
bool and if statement
bool value to string
Parse string to bool value
char type
char escape sequence
char case
Compare char value
char min/max value
Is char a digit
Is char a letter
Is char a symbol
Is char a Separator
Is char white space
Convert to char
UTF-16 Character