Click or drag to resize
Akka.NETNotUsed Class
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 Hierarchy
SystemObject
  AkkaNotUsed

Namespace:  Akka
Assembly:  Akka (in Akka.dll) Version: 1.2.3.129 (1.2.3.129)
Syntax
[SerializableAttribute]
public sealed class NotUsed : IEquatable<NotUsed>, 
	IComparable<NotUsed>

The NotUsed type exposes the following members.

Methods
  NameDescription
Public methodCompareTo
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Public methodEquals(Object)
Determines whether the specified object is equal to the current object.
(Overrides ObjectEquals(Object).)
Public methodEquals(NotUsed)
Indicates whether the current object is equal to another object of the same type.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Overrides ObjectToString.)
Top
Fields
  NameDescription
Public fieldStatic memberInstance
The singleton instance of NotUsed.
Top
Extension Methods
See Also