Search Results for

    Show / Hide Table of Contents

    Class NotUsed

    This type is used in generic type signatures wherever the actual value is of no importance. It is a combination of F#’s 'unit' and C#’s 'void', which both have different issues when used from the other language. An example use-case is the materialized value of an Akka Stream for cases where no result shall be returned from materialization.

    Inheritance
    Object
    NotUsed
    Implements
    IEquatable<NotUsed>
    IComparable<NotUsed>
    Inherited Members
    Object.Equals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Namespace: Akka
    Assembly: Akka.dll
    Syntax
    [Serializable]
    public sealed class NotUsed : IEquatable<NotUsed>, IComparable<NotUsed>

    Fields

    | Improve this Doc View Source

    Instance

    The singleton instance of NotUsed.

    Declaration
    public static readonly NotUsed Instance
    Field Value
    Type Description
    NotUsed

    Methods

    | Improve this Doc View Source

    CompareTo(NotUsed)

    Declaration
    public int CompareTo(NotUsed other)
    Parameters
    Type Name Description
    NotUsed other
    Returns
    Type Description
    Int32
    | Improve this Doc View Source

    Equals(NotUsed)

    Declaration
    public bool Equals(NotUsed other)
    Parameters
    Type Name Description
    NotUsed 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
    Overrides
    Object.Equals(Object)
    | Improve this Doc View Source

    GetHashCode()

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

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    Object.ToString()

    Implements

    IEquatable<T>
    IComparable<T>

    Extension Methods

    ObjectExtensions.IsDefaultForType<T>(T)
    ObjectExtensions.AsOption<T>(T)
    Extensions.AsInstanceOf<T>(Object)
    In This Article
    • githubImprove this Doc
    • View Source
    Back to top
    Contribute
    • Project Chat
    • Discussion Forum
    • Source Code
    Support
    • Akka.NET Support Plans
    • Akka.NET Observability Tools
    • Akka.NET Training & Consulting
    Maintained By
    • Petabridge - The Akka.NET Company
    • Learn Akka.NET