Skip to content

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

NameSummary
static DefaultGets the single [Unit](# value.

Methods

NameSummary
EqualsDetermines whether the specified [Unit](# value is equal to the current [Unit](# Because [Unit](# has a single value, this always...
GetHashCodeReturns the hash code for the current [Unit](# value.
ToStringReturns a string representation of the current [Unit](# value.

Operators

NameSummary
static op_EqualityDetermines whether the two specified [Unit](# values are equal. Because [Unit](# has a single value, this always returns true.
static op_InequalityDetermines whether the two specified [Unit](# values are not equal. Because [Unit](# has a single value, this always returns false.