Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to convert string to bool c#

 string sample = "True";
 bool myBool = bool.Parse(sample);

 ///or

 bool myBool = Convert.ToBoolean(sample);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #string #bool
ADD COMMENT
Topic
Name
9+2 =