CharIsUpper Method (String, Int32) |
Indicates whether the character at the specified position in a specified string is categorized as an uppercase letter.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public static bool IsUpper(
string s,
int index
)
Parameters
- s
- Type: SystemString
A string. - index
- Type: SystemInt32
The position of the character to evaluate in s.
Return Value
Type:
Booleantrue if the character at position
index in
s is an uppercase letter; otherwise, false.
Exceptions Exception | Condition |
---|
ArgumentNullException | s is null. |
ArgumentOutOfRangeException | index is less than zero or greater than the last position in s. |
See Also