• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

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
ValueType.Equals(object)
ValueType.GetHashCode()
ValueType.ToString()
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()
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 Source

Found(bool)

Processes the found data.

Declaration
public Found(bool found)
Parameters
Type Name Description
bool found

Specifies the found value.

View Source

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 Source

IsFound

Gets a value indicating whether this object is found.

Declaration
public bool IsFound { get; }
Property Value
Type Description
bool
View Source

Value

Gets or sets the value value.

Declaration
public T Value { get; }
Property Value
Type Description
T
  • View Source
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX