Click or drag to resize
Char Structure
Represents a character as a UTF-16 code unit.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
[SerializableAttribute]
public struct Char : IComparable, IConvertible, 
	IComparable<char>, IEquatable<char>

The Char type exposes the following members.

Methods
  NameDescription
Public methodEquals(Char)
Returns a value that indicates whether this instance is equal to the specified Char object.
Public methodEquals(Object)
Returns a value that indicates whether this instance is equal to a specified object.
(Overrides ValueTypeEquals(Object).)
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberIsControl(Char)
Indicates whether the specified Unicode character is categorized as a control character.
Public methodStatic memberIsControl(String, Int32)
Indicates whether the character at the specified position in a specified string is categorized as a control character.
Public methodStatic memberIsDigit(Char)
Indicates whether the specified Unicode character is categorized as a decimal digit.
Public methodStatic memberIsDigit(String, Int32)
Indicates whether the character at the specified position in a specified string is categorized as a decimal digit.
Public methodStatic memberIsLetter(Char)
Indicates whether the specified Unicode character is categorized as a Unicode letter.
Public methodStatic memberIsLetter(String, Int32)
Indicates whether the character at the specified position in a specified string is categorized as a Unicode letter.
Public methodStatic memberIsLetterOrDigit(Char)
Indicates whether the specified Unicode character is categorized as a letter or a decimal digit.
Public methodStatic memberIsLetterOrDigit(String, Int32)
Indicates whether the character at the specified position in a specified string is categorized as a letter or a decimal digit.
Public methodStatic memberIsLower(Char)
Indicates whether the specified Unicode character is categorized as a lowercase letter.
Public methodStatic memberIsLower(String, Int32)
Indicates whether the character at the specified position in a specified string is categorized as a lowercase letter.
Public methodStatic memberIsSurrogate(Char)
Indicates whether the specified character has a surrogate code unit.
Public methodStatic memberIsSurrogate(String, Int32)
Indicates whether the character at the specified position in a specified string has a surrogate code unit.
Public methodStatic memberIsUpper(Char)
Indicates whether the specified Unicode character is categorized as an uppercase letter.
Public methodStatic memberIsUpper(String, Int32)
Indicates whether the character at the specified position in a specified string is categorized as an uppercase letter.
Public methodStatic memberIsWhiteSpace(Char)
Indicates whether the specified Unicode character is categorized as white space.
Public methodStatic memberIsWhiteSpace(String, Int32)
Indicates whether the character at the specified position in a specified string is categorized as white space.
Public methodToString
Converts the value of this instance to its equivalent string representation.
(Overrides ValueTypeToString.)
Public methodToString(IFormatProvider)
Converts the value of this instance to its equivalent string representation using the specified culture-specific format information.
Public methodStatic memberToString(Char)
Converts the specified Unicode character to its equivalent string representation.
Top
Fields
  NameDescription
Public fieldStatic memberMaxValue
Represents the largest possible value of a Char. This field is constant.
Public fieldStatic memberMinValue
Represents the smallest possible value of a Char. This field is constant.
Top
See Also