This documentation is archived and is not being maintained.
Char Methods
Visual Studio 2010
The Char type exposes the following members.
| Name | Description | |
|---|---|---|
|
CompareTo(Char) | Compares this instance to a specified Char object and indicates whether this instance precedes, follows, or appears in the same position in the sort order as the specified Char object. |
|
CompareTo(Object) | Compares this instance to a specified object and indicates whether this instance precedes, follows, or appears in the same position in the sort order as the specified Object. |
|
ConvertFromUtf32 | Converts the specified Unicode code point into a UTF-16 encoded string. |
|
ConvertToUtf32(Char, Char) | Converts the value of a UTF-16 encoded surrogate pair into a Unicode code point. |
|
ConvertToUtf32(String, Int32) | Converts the value of a UTF-16 encoded character or surrogate pair at a specified position in a string into a Unicode code point. |
|
Equals(Char) | Returns a value that indicates whether this instance is equal to the specified Char object. |
|
Equals(Object) | Returns a value that indicates whether this instance is equal to a specified object. (Overrides ValueType::Equals(Object).) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
GetHashCode | Returns the hash code for this instance. (Overrides ValueType::GetHashCode().) |
|
GetNumericValue(Char) | Converts the specified numeric Unicode character to a double-precision floating point number. |
|
GetNumericValue(String, Int32) | Converts the numeric Unicode character at the specified position in a specified string 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(Char) | Categorizes a specified Unicode character into a group identified by one of the UnicodeCategory values. |
|
GetUnicodeCategory(String, Int32) | Categorizes the character at the specified position in a specified string into a group identified by one of the UnicodeCategory values. |
|
IsControl(Char) | Indicates whether the specified Unicode character is categorized as a control character. |
|
IsControl(String, Int32) | Indicates whether the character at the specified position in a specified string is categorized as a control character. |
|
IsDigit(Char) | Indicates whether the specified Unicode character is categorized as a decimal digit. |
|
IsDigit(String, Int32) | Indicates whether the character at the specified position in a specified string is categorized as a decimal digit. |
|
IsHighSurrogate(Char) | Indicates whether the specified Char object is a high surrogate. |
|
IsHighSurrogate(String, Int32) | Indicates whether the Char object at the specified position in a string is a high surrogate. |
|
IsLetter(Char) | Indicates whether the specified Unicode character is categorized as a Unicode letter. |
|
IsLetter(String, Int32) | Indicates whether the character at the specified position in a specified string is categorized as a Unicode letter. |
|
IsLetterOrDigit(Char) | Indicates whether the specified Unicode character is categorized as a letter or a decimal digit. |
|
IsLetterOrDigit(String, Int32) | Indicates whether the character at the specified position in a specified string is categorized as a letter or a decimal digit. |
|
IsLower(Char) | Indicates whether the specified Unicode character is categorized as a lowercase letter. |
|
IsLower(String, Int32) | Indicates whether the character at the specified position in a specified string is categorized as a lowercase letter. |
|
IsLowSurrogate(Char) | Indicates whether the specified Char object is a low surrogate. |
|
IsLowSurrogate(String, Int32) | Indicates whether the Char object at the specified position in a string is a low surrogate. |
|
IsNumber(Char) | Indicates whether the specified Unicode character is categorized as a number. |
|
IsNumber(String, Int32) | Indicates whether the character at the specified position in a specified string is categorized as a number. |
|
IsPunctuation(Char) | Indicates whether the specified Unicode character is categorized as a punctuation mark. |
|
IsPunctuation(String, Int32) | Indicates whether the character at the specified position in a specified string is categorized as a punctuation mark. |
|
IsSeparator(Char) | Indicates whether the specified Unicode character is categorized as a separator character. |
|
IsSeparator(String, Int32) | Indicates whether the character at the specified position in a specified string is categorized as a separator character. |
|
IsSurrogate(Char) | Indicates whether the specified character has a surrogate code unit. |
|
IsSurrogate(String, Int32) | Indicates whether the character at the specified position in a specified string has a surrogate code unit. |
|
IsSurrogatePair(Char, Char) | Indicates whether the two specified Char objects form a surrogate pair. |
|
IsSurrogatePair(String, Int32) | Indicates whether two adjacent Char objects at a specified position in a string form a surrogate pair. |
|
IsSymbol(Char) | Indicates whether the specified Unicode character is categorized as a symbol character. |
|
IsSymbol(String, Int32) | Indicates whether the character at the specified position in a specified string is categorized as a symbol character. |
|
IsUpper(Char) | Indicates whether the specified Unicode character is categorized as an uppercase letter. |
|
IsUpper(String, Int32) | Indicates whether the character at the specified position in a specified string is categorized as an uppercase letter. |
|
IsWhiteSpace(Char) | Indicates whether the specified Unicode character is categorized as white space. |
|
IsWhiteSpace(String, Int32) | Indicates whether the character at the specified position in a specified string is categorized as white space. |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
Parse | Converts the value of the specified string to its equivalent Unicode character. |
|
ToLower(Char) | Converts the value of a Unicode character to its lowercase equivalent. |
|
ToLower(Char, CultureInfo) | Converts the value of a specified Unicode character to its lowercase equivalent using specified culture-specific formatting information. |
|
ToLowerInvariant | Converts the value of a Unicode character to its lowercase equivalent using the casing rules of the invariant culture. |
|
ToString() | Converts the value of this instance to its equivalent string representation. (Overrides ValueType::ToString().) |
|
ToString(Char) | Converts the specified Unicode character to its equivalent string representation. |
|
ToString(IFormatProvider) | Converts the value of this instance to its equivalent string representation using the specified culture-specific format information. |
|
ToUpper(Char) | Converts the value of a Unicode character to its uppercase equivalent. |
|
ToUpper(Char, CultureInfo) | Converts the value of a specified Unicode character to its uppercase equivalent using specified culture-specific formatting information. |
|
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 | |
|---|---|---|
|
IConvertible::ToBoolean | Infrastructure. Note This conversion is not supported. Attempting to do so throws an InvalidCastException. |
|
IConvertible::ToByte | Infrastructure. For a description of this member, see IConvertible::ToByte. |
|
IConvertible::ToChar | Infrastructure. For a description of this member, see IConvertible::ToChar. |
|
IConvertible::ToDateTime | Infrastructure. Note This conversion is not supported. Attempting to do so throws an InvalidCastException. |
|
IConvertible::ToDecimal | Infrastructure. Note This conversion is not supported. Attempting to do so throws an InvalidCastException. |
|
IConvertible::ToDouble | Infrastructure. Note This conversion is not supported. Attempting to do so throws an InvalidCastException. |
|
IConvertible::ToInt16 | Infrastructure. For a description of this member, see IConvertible::ToInt16. |
|
IConvertible::ToInt32 | Infrastructure. For a description of this member, see IConvertible::ToInt32. |
|
IConvertible::ToInt64 | Infrastructure. For a description of this member, see IConvertible::ToInt64. |
|
IConvertible::ToSByte | Infrastructure. For a description of this member, see IConvertible::ToSByte. |
|
IConvertible::ToSingle | Infrastructure. Note This conversion is not supported. Attempting to do so throws an InvalidCastException. |
|
IConvertible::ToType | Infrastructure. For a description of this member, see IConvertible::ToType. |
|
IConvertible::ToUInt16 | Infrastructure. For a description of this member, see IConvertible::ToUInt16. |
|
IConvertible::ToUInt32 | Infrastructure. For a description of this member, see IConvertible::ToUInt32. |
|
IConvertible::ToUInt64 | Infrastructure. For a description of this member, see IConvertible::ToUInt64. |
Show: