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.
Inherited Members
Namespace: Akka
Assembly: Akka.dll
Syntax
[Serializable]
public sealed class NotUsed : IEquatable<NotUsed>, IComparable<NotUsed>
Fields
| Edit this page View SourceInstance
The singleton instance of NotUsed.
Declaration
public static readonly NotUsed Instance
Field Value
| Type | Description |
|---|---|
| NotUsed |
Methods
| Edit this page View SourceCompareTo(NotUsed?)
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.
Declaration
public int CompareTo(NotUsed? other)
Parameters
| Type | Name | Description |
|---|---|---|
| NotUsed | other | An object to compare with this instance. |
Returns
| Type | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| int | A value that indicates the relative order of the objects being compared. The return value has these meanings:
|
Equals(NotUsed?)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(NotUsed? other)
Parameters
| Type | Name | Description |
|---|---|---|
| NotUsed | other | An object to compare with this object. |
Returns
| Type | Description |
|---|---|
| bool | true if the current object is equal to the |
Equals(object?)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object? obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
| Edit this page View SourceGetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for the current object. |
Overrides
| Edit this page View SourceToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string that represents the current object. |
Edit this page