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

value
A string that represents a bool value.
Converts a string to a bool value.

Syntax

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

Parameters

value
A string that represents a bool value.

Return Value

The value converted from the provided string.

Remarks

Case is ignored during comparison.
If the provided string is invalid, then this method returns false as default 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.