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.
Namespace: Akka
Assembly: Akka.dll
Syntax
[Serializable]
public sealed class NotUsed : IEquatable<NotUsed>, IComparable<NotUsed>
Fields
|
Improve this Doc
View Source
Instance
Declaration
public static readonly NotUsed Instance
Field Value
Methods
|
Improve this Doc
View Source
CompareTo(NotUsed)
Declaration
public int CompareTo(NotUsed other)
Parameters
Type |
Name |
Description |
NotUsed |
other |
|
Returns
|
Improve this Doc
View Source
Equals(NotUsed)
Declaration
public bool Equals(NotUsed other)
Parameters
Type |
Name |
Description |
NotUsed |
other |
|
Returns
|
Improve this Doc
View Source
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Implements
Extension Methods