To check char upper or lower and conversion with char.

Jitendrasoft09
Posted by Jitendrasoft09 under C# category on | Points: 40 | Views : 658
using System;

class Jkexample {

static void Main(string[] args) {

char myChar = 'x';


Console.WriteLine("IsLower? {0}", Char.IsLower(myChar));
Console.WriteLine("IsUpper? {0}", Char.IsUpper(myChar));


Console.WriteLine("Convert to Upper: {0}", Char.ToUpper(myChar));
Console.WriteLine("Convert to Lower: {0}", Char.ToLower(myChar));


Console.ReadLine();
}
}

Comments or Responses

Login to post response