Class BooleanExtensions
Defines a collection of extensions for 
Inheritance
System.Object
    BooleanExtensions
  Namespace: MADE.Data.Converters.Extensions
Assembly: MADE.Data.Converters.dll
Syntax
public static class BooleanExtensions : objectMethods
| Improve this Doc View SourceToFormattedString(Boolean, String, String)
Converts a 
Declaration
public static string ToFormattedString(this bool value, string trueValue = "True", string falseValue = "False")Parameters
| Type | Name | Description | 
|---|---|---|
| System.Boolean | value | The  | 
| System.String | trueValue | The  | 
| System.String | falseValue | The  | 
Returns
| Type | Description | 
|---|---|
| System.String | A formatted string | 
ToFormattedString(Nullable<Boolean>, String, String, String)
Converts a nullable 
Declaration
public static string ToFormattedString(this bool? value, string trueValue = "True", string falseValue = "False", string nullValue = "Not set")Parameters
| Type | Name | Description | 
|---|---|---|
| System.Nullable<System.Boolean> | value | The  | 
| System.String | trueValue | The  | 
| System.String | falseValue | The  | 
| System.String | nullValue | The  | 
Returns
| Type | Description | 
|---|---|
| System.String | A formatted string |