August 2003
Intermediate to advanced
928 pages
32h 1m
English
Char
This simple value type
represents a 16-bit Unicode character
(from hexadecimal 0x0000 to 0xFFFF). You can convert a character to
upper- or lowercase and get its numeric representation using the
methods of a Char object. You can also test if it
is a number, letter, or symbol by using the methods prefixed with
Is. For exact information, use the
GetUnicodeCategory( ) method to get an enumerated
value from System.Globalization.UnicodeCategory.
This classifies the character into one of about thirty categories.
This type is aliased as char in C#. If you need an
array of chars, use the String class.
public struct Char : IComparable, IConvertible { // Public Static Fields public const char MaxValue; // =0x0000FFFF public const char MinValue; // =0x00000000 // Public Static Methods public static double GetNumericValue(charc); public static double GetNumericValue(strings, intindex); public static UnicodeCategory GetUnicodeCategory(charc); public static UnicodeCategory GetUnicodeCategory(strings, intindex); public static bool IsControl(charc); public static bool IsControl(strings, intindex); public static bool IsDigit(charc); public static bool IsDigit(strings, intindex); public static bool IsLetter(charc); public static bool IsLetter(strings, intindex); public static bool IsLetterOrDigit(charc); public static bool IsLetterOrDigit(strings, intindex); public static bool IsLower(charc); public static bool IsLower(strings, intindex); public static bool