Boolean.Parse(String value) : Boolean « System « C# / C Sharp by API






Boolean.Parse(String value)

 
using System;

class MainClass
{
    public static void Main(string[] args)
    {
    bool myBool = bool.Parse("True");
    Console.WriteLine("-> Value of myBool: {0}", myBool);
    }
}

   
  








Related examples in the same category

1.Boolean.FalseString