Answers for "how to convert a bool into a string c#"

C#
7

how to convert string to bool c#

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

 ///or

 bool myBool = Convert.ToBoolean(sample);
Posted by: Guest on March-19-2020

Code answers related to "how to convert a bool into a string c#"

C# Answers by Framework

Browse Popular Code Answers by Language