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 | |
---|---|---|
Default | Gets the single unit value. |
Top
Methods
Name | Description | |
---|---|---|
Equals(Object) | Indicates whether the current unit is equal to the specified object. (Overrides ValueType.Equals(Object).) | |
Equals(Unit) | Indicates whether the current unit is equal to the specified unit. | |
Finalize | (Inherited from Object.) | |
GetHashCode | Gets the unit value's hash code. (Overrides ValueType.GetHashCode().) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
ToString | (Inherited from ValueType.) |
Top
Operators
Name | Description | |
---|---|---|
Equality | Indicates whether first and second arguments are equal. | |
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.