Show / Hide Table of Contents

    Struct Option<T>

    Allows tracking of whether a value has be initialized (even with the default value) for both reference and value types. Useful where distinguishing between null (or zero, or false) and uninitialized is significant.

    Namespace: Akka.Streams.Util
    Assembly: Akka.Streams.dll
    Syntax
    public struct Option<T>
    Type Parameters
    Name Description
    T

    TBD

    Constructors

    | Improve this Doc View Source

    Option(T)

    TBD

    Declaration
    public Option(T value)
    Parameters
    Type Name Description
    T value

    TBD

    Fields

    | Improve this Doc View Source

    None

    TBD

    Declaration
    public static readonly Option<T> None
    Field Value
    Type Description
    Option<T>

    Properties

    | Improve this Doc View Source

    HasValue

    TBD

    Declaration
    public bool HasValue { get; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    Value

    TBD

    Declaration
    public T Value { get; }
    Property Value
    Type Description
    T

    Methods

    | Improve this Doc View Source

    Equals(Option<T>)

    Declaration
    public bool Equals(Option<T> other)
    Parameters
    Type Name Description
    Option<T> other
    Returns
    Type Description
    Boolean
    | Improve this Doc View Source

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj
    Returns
    Type Description
    Boolean
    | Improve this Doc View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32
    | Improve this Doc View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String

    Operators

    | Improve this Doc View Source

    Implicit(T to Option<T>)

    Performs an implicit conversion from T to Option<T>.

    Declaration
    public static implicit operator Option<T>(T value)
    Parameters
    Type Name Description
    T value

    The object to convert

    Returns
    Type Description
    Option<T>

    The result of the conversion.

    Extension Methods

    ObjectExtensions.IsDefaultForType<T>(T)
    ObjectExtensions.AsOption<T>(T)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2013-2019 Akka.NET project
    Generated by DocFX