C# Char IsLower(String, Int32)
Description
Char IsLower(String, Int32)
indicates whether the character
at the specified position in a specified string is categorized as a lowercase
letter.
Syntax
Char.IsLower(String, Int32)
has the following syntax.
public static bool IsLower(
string s,
int index
)
Parameters
Char.IsLower(String, Int32)
has the following parameters.
s
- A string.index
- The position of the character to evaluate in s.
Returns
Char.IsLower(String, Int32)
method returns true if the character at position index in s is a lowercase letter; otherwise,
false.
Example
The following code example demonstrates IsLower.
/* www.ja v a2s . c om*/
using System;
public class MainClass {
public static void Main() {
char ch = 'a';
Console.WriteLine(Char.IsLower("upperCase", 5)); // Output: "False"
}
}
The code above generates the following result.