- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to convert Lower case to Upper Case using C#?
To convert Lower case to Upper case, use the ToUpper() method in C#.
Let’s say your string is −
str = "david";
To convert the above lowercase string in uppercase, use the ToUpper() method −
Console.WriteLine("Converted to UpperCase : {0}", str.ToUpper());
The following is the code in C# to convert character case −
Example
using System; using System.Collections.Generic; using System.Text; namespace Demo { class MyApplication { static void Main(string[] args) { string str; str = "david"; Console.WriteLine("LowerCase : {0}", str); // convert to uppercase Console.WriteLine("Converted to UpperCase : {0}", str.ToUpper()); Console.ReadLine(); } } }
- Related Articles
- How to convert Upper case to Lower Case using C#?
- MySQL Query to change lower case to upper case?
- C program to convert upper case to lower and vice versa by using string concepts
- Convert a C++ String to Upper Case
- Convert mixed case string to lower case in JavaScript
- How to convert a string into upper case using JavaScript?
- How to convert std::string to lower case in C++?
- Convert vowels from upper to lower or lower to upper using C program
- How to convert a string into the lower case using JavaScript?
- Python program to count upper and lower case characters without using inbuilt functions
- Python regex to find sequences of one upper case letter followed by lower case letters
- C# program to count upper and lower case characters in a given string
- Java Program to check whether the entered character a digit, white space, lower case or upper case character
- Count upper and lower case characters without using inbuilt functions in Python program
- Java program to count upper and lower case characters in a given string

Advertisements