Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Parsing Strings to Boolean

, 16 Sep 2010
If you don't need to check for other strings than True or False, then, you should use Boolean.Parse or Boolean.TryParse.// Return trueBoolean.Parse("true");// Return falseBoolean.Parse("false");// Exception.. you can prevent that from happening by using a try..catch// or using...

Revisions


  

Compare Revision Minor Date Status Editor
publicly available No 16-Sep-10 15:32 Available Simon Dufour
1 No 16-Sep-10 10:54 Composing Simon Dufour

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Simon Dufour
Software Developer SNC-Lavalin inc.
Canada Canada
I have a three years technical education in computer science (June 2006) and a four years bachelor's degree in Software Engineering from the École de Technologie Supérieure (August 2010). I worked as a Web Developper at the beginning of my career before being recruited as a .NET Analyst-Programer at SNC-Lavalin in Montreal.
Follow on   Twitter   Google+

| Advertise | Privacy | Mobile
Web02 | 2.8.140718.1 | Last Updated 16 Sep 2010
Article Copyright 2010 by Simon Dufour
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid