OptionalValue<T> structure

namespace: Serenity   assemblySerenity.Net.Services

An optional value returned by some methods like interceptors. It can be used to indicate that the result is optional and if default is returned, the operation should continue normally.

public struct OptionalValue<T>
parameter description
T Value type
value Value

Public Members

name description
OptionalValue(…) An optional value returned by some methods like interceptors. It can be used to indicate that the result is optional and if default is returned, the operation should continue normally.
HasValue { get; } True if the object has a meaningful value.
Value { get; } The meaningful value of the object.
implicit operator

See Also