
- C# Basic Tutorial
- C# - Home
- C# - Overview
- C# - Environment
- C# - Program Structure
- C# - Basic Syntax
- C# - Data Types
- C# - Type Conversion
- C# - Variables
- C# - Constants
- C# - Operators
- C# - Decision Making
- C# - Loops
- C# - Encapsulation
- C# - Methods
- C# - Nullables
- C# - Arrays
- C# - Strings
- C# - Structure
- C# - Enums
- C# - Classes
- C# - Inheritance
- C# - Polymorphism
- C# - Operator Overloading
- C# - Interfaces
- C# - Namespaces
- C# - Preprocessor Directives
- C# - Regular Expressions
- C# - Exception Handling
- C# - File I/O
- C# Advanced Tutorial
- C# - Attributes
- C# - Reflection
- C# - Properties
- C# - Indexers
- C# - Delegates
- C# - Events
- C# - Collections
- C# - Generics
- C# - Anonymous Methods
- C# - Unsafe Codes
- C# - Multithreading
- C# Useful Resources
- C# - Questions and Answers
- C# - Quick Guide
- C# - Useful Resources
- C# - Discussion
Char.ToLowerInvariant(Char) Method in C#
The Char.ToLowerInvariant() method in C# is used to convert the value of a Unicode character to its lowercase equivalent using the casing rules of the invariant culture.
Output
Following is the syntax −
public static char ToLowerInvariant (char ch);
Above, the parameter ch is the Unicode character to convert.
Example
Let us now see an example to implement the Char.ToLowerInvariant() method −
using System; public class Demo { public static void Main(){ char ch = 'D'; char res = Char.ToLowerInvariant(ch); Console.WriteLine("Value = "+ch); Console.WriteLine("Lowercase Equivalent = "+res); } }
Output
This will produce the following output −
Value = D Lowercase Equivalent = d
Example
Let us now see another example −
using System; public class Demo { public static void Main(){ char ch = 'p'; char res = Char.ToLowerInvariant(ch); Console.WriteLine("Value = "+ch); Console.WriteLine("Lowercase Equivalent = "+res); } }
Output
This will produce the following output −
Value = p Lowercase Equivalent = p
- Related Articles
- Char.ToUpperInvariant(Char) Method in C#
- Uri.HexEscape(Char) Method in C#
- Difference between const char* p, char * const p, and const char * const p in C
- Difference between char s[] and char *s in C
- Char Struct in C#
- How to convert an std::string to const char* or char* in C++?
- How to convert a std::string to const char* or char* in C++?
- Declare char arrays in C#
- CHAR vs VARCHAR in SQL
- char vs string keywords in C#
- How to change the length of the Name column from CHAR(20) to CHAR(50)?
- Copy char array to string in Java
- Convert string to char array in Java
- Convert Char array to String in Java
- Convert string to char array in C++

Advertisements