TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Print String Lower Case, Upper Case and First Letter Uppercase
Surya Pratap Singh
Sep 21
2015
Code
1.6
k
0
2
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
ConsoleApplication10
using
System;
using
System.Globalization;
using
System.Threading;
namespace
ConsoleApplication10
{
class
Program
{
static
void
Main(
string
[] args)
{
string
str =
"surya pratap singh"
;
CultureInfo culture = Thread.CurrentThread.CurrentCulture;
TextInfo text = culture.TextInfo;
Console.WriteLine(text.ToTitleCase(str));
Console.WriteLine(text.ToUpper(str));
Console.WriteLine(text.ToLower(str));
Console.ReadLine();
}
}
}
String
c#
Change string case