char.Parse : Parse « Data Types « C# / C Sharp






char.Parse

  

using System;
using System.Collections.Generic;
using System.Text;

class Program {
    static void Main(string[] args) {
        char myChar = char.Parse("w");
        Console.WriteLine("-> Value of myChar: {0}\n", myChar);
    }
}

   
  








Related examples in the same category

1.int.Parse
2.double.Parse
3.bool.Parse
4.parse decimal
5.Determines whether the supplied number is an integer.
6.Determines whether the supplied number is a decimal number.
7.Determines whether the supplied number is of numeric type.
8.Is Valid Integer