ExtensionMethod.NET Home of 880 C#, Visual Basic, F# and Javascript extension methods

toTrueFalse

Returns "True" or "False"

Source

<System.Runtime.CompilerServices.Extension()> _
	Public Function toTrueFalse(ByVal x As Boolean) As String
        Return IIf(x, "True", "False")
	End Function

Example

dim a as boolean
console.writeline( a.toTrueFalse )

Author: Micah Epps

Submitted on: 14 jun. 2012

Language: VB

Type: System.Boolean

Views: 4964