Skip to main content
Code sample in Swift, C# and Java
Main menu
About
History
Swift
C#
Java
Python
You are here
Home
»
Forums
»
C#
»
C#: Work with simple types
»
C#: Work with bool (Boolean)
Conversion bool from a string in C#
Submitted by
obraztsov
on Thu, 12/03/2015 - 11:55
Forums:
C#: Work with bool (Boolean)
var
str =
"true"
;
var
boolValue =
bool
.Parse(str);
//boolValue is True
Log in
to post comments