Struct Found<T>
A lightweight result wrapper indicating whether a lookup succeeded and, if so, carrying the found value. Implemented as a struct so that it is returned on the stack without heap allocation in hot NDB lookup paths.
Inherited Members
Namespace: DRIT.Mail.Pst.Shared
Assembly: DRIT.Mail.dll
Syntax
public readonly struct Found<T>
Type Parameters
| Name | Description |
|---|---|
| T | The T type parameter. |
Constructors
View SourceFound(bool)
Processes the found data.
Declaration
public Found(bool found)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | found | Specifies the found value. |
Found(bool, T)
Processes the found data.
Declaration
public Found(bool found, T value)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | found | Specifies the found value. |
| T | value | The value to process. |
Properties
View SourceIsFound
Gets a value indicating whether this object is found.
Declaration
public bool IsFound { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Value
Gets or sets the value value.
Declaration
public T Value { get; }
Property Value
| Type | Description |
|---|---|
| T |