You need System.Convert

Peter Bromberg replied to Aldo Liaks at 09-May-08 02:55

specifically, Convert.ToBoolean( string ), which returns type bool.

Biography
Peter Bromberg is a C# MVP, MCP, and .NET expert who has worked in banking ,financial and telephony for 20 years. Pete focuses exclusively on the .NET Platform, and his samples at GotDotNet.com have been downloaded over 56,000 times. Peter enjoys producing 3D raytraced digital photo collage with Maya, the beach, and fine wines. You can view Peter's UnBlog and IttyUrl sites.
Please post questions at forums, not via email!

Click here to sign in and reply. You could earn money via our $500 contest just for being helpful.
  C# 3.0 - Convert string to bool - Aldo Liaks  09-May-08 02:44 2:44:38 PM
      You need System.Convert - Peter Bromberg  09-May-08 02:55 2:55:53 PM
          Right! - Aldo Liaks  10-May-08 02:47 2:47:32 AM
      convert - sundar k  09-May-08 11:18 11:18:34 PM
      try this... - Vasanthakumar D  10-May-08 12:09 12:09:39 AM
      Re: Convert - Chirag Bhavsar  10-May-08 02:13 2:13:23 AM
      cheers - santhosh kapa  10-May-08 02:45 2:45:44 AM
      Try This - Sanjay Verma  12-May-08 01:46 1:46:19 AM
View Posts