Members of System Boolean

Next, consider the System.Boolean data type.The only valid assignment a VB 2008 Boolean can take is from the set {True | False}. Given this point, it should be clear that System.Boolean does not support a MinValue/MaxValue property set, but rather TrueString/FalseString (which yields the string "True" or "False", respectively):

Console.WriteLine("Boolean.FalseString: {0}", Boolean.FalseString) Console.WriteLine("Boolean.TrueString: {0}", Boolean.TrueString)

Was this article helpful?

0 0

Post a comment