Constructor AnnotatedBoolean
AnnotatedBoolean(bool, string)
Initializes a new instance of the AnnotatedBoolean struct with the specified value and annotation.
Declaration
public AnnotatedBoolean(bool value, string annotation)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | value | The boolean value. |
| string | annotation | The annotation providing additional context for the boolean value. |
AnnotatedBoolean(bool, Func<bool, string>)
Initializes a new instance of the AnnotatedBoolean struct with the specified value and a function to generate the annotation.
Declaration
public AnnotatedBoolean(bool value, Func<bool, string> annotationSupplier)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | value | The boolean value. |
| Func<bool, string> | annotationSupplier | The function to generate the annotation based on the boolean value. |
AnnotatedBoolean(bool)
Initializes a new instance of the AnnotatedBoolean struct with the specified value and annotation.
Declaration
public AnnotatedBoolean(bool value)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | value | The boolean value. |