C# Char IsUpper(Char)
Description
Char IsUpper(Char)
indicates whether the specified
Unicode character is categorized as an uppercase letter.
Syntax
Char.IsUpper(Char)
has the following syntax.
public static bool IsUpper(
char c
)
Parameters
Char.IsUpper(Char)
has the following parameters.
c
- The Unicode character to evaluate.
Returns
Char.IsUpper(Char)
method returns true if c is an uppercase letter; otherwise, false.
Example
The following code shows how to use Char.IsUpper(Char) method.
/*from w w w. j a v a2 s. c om*/
using System;
public class MainClass {
public static void Main() {
char ch = 'c';
Console.WriteLine(Char.IsUpper(ch));
}
}
The code above generates the following result.