Dela via


Unit Structure

Represents void.

Namespace:  System.Reactive
Assembly:  System.Reactive (in System.Reactive.dll)

Syntax

'Declaration
<SerializableAttribute> _
Public Structure Unit _
    Implements IEquatable(Of Unit)
'Usage
Dim instance As Unit
[SerializableAttribute]
public struct Unit : IEquatable<Unit>
[SerializableAttribute]
public value class Unit : IEquatable<Unit>
[<SealedAttribute>]
[<SerializableAttribute>]
type Unit =  
    struct
        interface IEquatable<Unit>
    end
JScript suports the use of structures, but not the declaration of new ones.

The Unit type exposes the following members.

Properties

  Name Description
Public propertyStatic member Default Gets the single unit value.

Top

Methods

  Name Description
Public method Equals(Object) Indicates whether the current unit is equal to the specified object. (Overrides ValueType.Equals(Object).)
Public method Equals(Unit) Indicates whether the current unit is equal to the specified unit.
Protected method Finalize (Inherited from Object.)
Public method GetHashCode Gets the unit value's hash code. (Overrides ValueType.GetHashCode().)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from ValueType.)

Top

Operators

  Name Description
Public operatorStatic member Equality Indicates whether first and second arguments are equal.
Public operatorStatic member Inequality Indicates whether first and second arguments are not equal.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Reactive Namespace