Class StringExtensions
Static class containing String static helper and extension methods
Inheritance
System.Object
StringExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Ladybug
Assembly: ladybug.dll
Syntax
public static class StringExtensions
Methods
| Improve this Doc View SourceToBool(String, Boolean)
Gets bool representation of a string
Declaration
public static bool ToBool(this string value, bool throwOnFail = true)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | |
System.Boolean | throwOnFail | Whether to throw an exception upon failed conversion |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
If method is unable to determine the given string's value, it will return false