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