Char Members
.NET Framework 2.0
Represents a Unicode character.
The following tables list the members exposed by the Char type.
| Name | Description | |
|---|---|---|
| CompareTo | Overloaded. Compares this instance to a specified object or value type, and returns an indication of their relative values. |
| ConvertFromUtf32 | Converts the specified Unicode code point into a UTF-16 encoded string. |
| ConvertToUtf32 | Overloaded. Converts the value of a UTF-16 encoded surrogate pair into a Unicode code point. |
| Equals | Overloaded. |
| GetHashCode | Overridden. Returns the hash code for this instance. |
| GetNumericValue | Overloaded. Converts a specified numeric Unicode character to a double-precision floating point number. |
| GetType | Gets the Type of the current instance. (Inherited from Object.) |
| GetTypeCode | Returns the TypeCode for value type Char. |
| GetUnicodeCategory | Overloaded. Categorizes a Unicode character into a group identified by one of the UnicodeCategory values. |
| IsControl | Overloaded. Indicates whether a specified Unicode character is categorized as a control character. |
| IsDigit | Overloaded. Indicates whether a Unicode character is categorized as a decimal digit. |
| IsHighSurrogate | Overloaded. Indicates whether the specified Char object is a high surrogate. |
| IsLetter | Overloaded. Indicates whether a Unicode character is categorized as an alphabetic letter. |
| IsLetterOrDigit | Overloaded. Indicates whether a Unicode character is categorized as an alphabetic letter or a decimal digit. |
| IsLower | Overloaded. Indicates whether a Unicode character is categorized as a lowercase letter. |
| IsLowSurrogate | Overloaded. Indicates whether the specified Char object is a low surrogate. |
| IsNumber | Overloaded. Indicates whether a Unicode character is categorized as a number. |
| IsPunctuation | Overloaded. Indicates whether a Unicode character is categorized as a punctuation mark. |
| IsSeparator | Overloaded. Indicates whether a Unicode character is categorized as a separator character. |
| IsSurrogate | Overloaded. Indicates whether a Unicode character is categorized as a surrogate character. |
| IsSurrogatePair | Overloaded. Indicates whether two specified Char objects form a surrogate pair. |
| IsSymbol | Overloaded. Indicates whether a Unicode character is categorized as a symbol character. |
| IsUpper | Overloaded. Indicates whether a Unicode character is categorized as an uppercase letter. |
| IsWhiteSpace | Overloaded. Indicates whether a Unicode character is categorized as white space. |
| Parse | Converts the value of the specified string to its equivalent Unicode character. |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (Inherited from Object.) |
| ToLower | Overloaded. Converts the value of a Unicode character to its lowercase equivalent. |
| ToLowerInvariant | Converts the value of a Unicode character to its lowercase equivalent using the casing rules of the invariant culture. |
| ToString | Overloaded. Overridden. Converts the value of this instance to its equivalent string representation. |
| ToUpper | Overloaded. Converts the value of a Unicode character to its uppercase equivalent. |
| ToUpperInvariant | Converts the value of a Unicode character to its uppercase equivalent using the casing rules of the invariant culture. |
| TryParse | Converts the value of the specified string to its equivalent Unicode character. A return code indicates whether the conversion succeeded or failed. |
| Name | Description | |
|---|---|---|
| System.IConvertible.ToBoolean | Note This conversion is not supported. Attempting to do so throws an InvalidCastException. |
| System.IConvertible.ToByte | Converts the value of the current Char object to an 8-bit unsigned integer. |
| System.IConvertible.ToChar | Returns the current Char object. |
| System.IConvertible.ToDateTime | Note This conversion is not supported. Attempting to do so throws an InvalidCastException. |
| System.IConvertible.ToDecimal | Note This conversion is not supported. Attempting to do so throws an InvalidCastException. |
| System.IConvertible.ToDouble | Note This conversion is not supported. Attempting to do so throws an InvalidCastException. |
| System.IConvertible.ToInt16 | Converts value of the current Char object to a 16-bit signed integer. |
| System.IConvertible.ToInt32 | Converts value of the current Char object to a 32-bit signed integer. |
| System.IConvertible.ToInt64 | Converts value of the current Char object to a 64-bit signed integer. |
| System.IConvertible.ToSByte | Converts value of the current Char object to an 8-bit signed integer. |
| System.IConvertible.ToSingle | Note This conversion is not supported. Attempting to do so throws an InvalidCastException. |
| System.IConvertible.ToType | Converts the value of the current Char object to an object of the specified type using the specified IFormatProvider object. |
| System.IConvertible.ToUInt16 | Converts value of the current Char object to a 16-bit unsigned integer. |
| System.IConvertible.ToUInt32 | Converts value of the current Char object to a 32-bit unsigned integer. |
| System.IConvertible.ToUInt64 | Converts value of the current Char object to a 64-bit unsigned integer. |