Unit struct¶
Defined in
Namespace: System.Reactive
Assembly: System.Reactive.dll
Full name: System.Reactive.Unit
Modifiers: public sealed
Summary¶
Represents a type with a single value. This type is often used to denote the successful completion of a void-returning method (C#) or a Sub procedure (Visual Basic).
Applies to
netstandard2.0
Class hierarchy
classDiagram
class Unit
class IEquatable~Unit~ {
<>
}
IEquatable~Unit~ <|.. Unit
Implements: IEquatable
Properties¶
| Name | Summary |
|---|---|
| static Default | Gets the single [Unit](# value. |
Methods¶
| Name | Summary |
|---|---|
| Equals | Determines whether the specified [Unit](# value is equal to the current [Unit](# Because [Unit](# has a single value, this always... |
| GetHashCode | Returns the hash code for the current [Unit](# value. |
| ToString | Returns a string representation of the current [Unit](# value. |
Operators¶
| Name | Summary |
|---|---|
| static op_Equality | Determines whether the two specified [Unit](# values are equal. Because [Unit](# has a single value, this always returns true. |
| static op_Inequality | Determines whether the two specified [Unit](# values are not equal. Because [Unit](# has a single value, this always returns false. |