CodeCarvings.Piczard
BoolToString(Boolean,String,String) Method
See Also  Send Feedback
CodeCarvings.Piczard.Helpers Namespace > StringConversionHelper Class > BoolToString Method : BoolToString(Boolean,String,String) Method

value
The value to be converted to string.
trueValue
The string to return when the value is true.
falseValue
The string to return when the value is false.
Converts a bool value to a string using the specified tokens.

Syntax

Visual Basic (Declaration)  
Public Overloads Shared Function BoolToString( _
   ByVal value As Boolean, _
   ByVal trueValue As String, _
   ByVal falseValue As String _
) As String
C#  
public static string BoolToString( 
   bool value,
   string trueValue,
   string falseValue
)

Parameters

value
The value to be converted to string.
trueValue
The string to return when the value is true.
falseValue
The string to return when the value is false.

Return Value

string that represents the specified value.

Requirements

Platforms: Windows 8, Windows 7, Windows Vista, Windows XP Professional, Windows 2000 - Windows Server family: 2012, 2008.R2, 2008, 2003, 2000

See Also

©2013 Sergio Turolla. All Rights Reserved.