bool theBool = true; int boolToInt = theBool ? 1 : 0; //1 if theBool is true and 0 if theBool is falsethat's it.
Wednesday, January 9, 2013
C# .net Convert bool to int
Comments by IntenseDebate
Posting anonymously.
C# .net Convert bool to int
2013-01-09T19:24:00+08:00
bbl
Subscribe to:
Post Comments (Atom)