Struct UserDataSlot<TValue>
Uniquely identifies user data which can be associated
with any object.
Assembly: DotNext.dll
Syntax
public readonly struct UserDataSlot<TValue> : IEquatable<UserDataSlot<TValue>>
Type Parameters
| Name |
Description |
| TValue |
The type of the value stored in user data slot.
|
Constructors
View Source
UserDataSlot()
Uniquely identifies user data which can be associated
with any object.
Declaration
Properties
View Source
IsAllocated
Gets a value indicating that this object was constructed by UserDataSlot() constructor.
Declaration
public bool IsAllocated { get; }
Property Value
Methods
View Source
Equals(UserDataSlot<TValue>)
Declaration
public bool Equals(UserDataSlot<TValue> other)
Parameters
Returns
View Source
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
View Source
ToString()
Gets textual representation of this data slot
useful for debugging.
Declaration
public override string ToString()
Returns
| Type |
Description |
| string |
Textual representation of this data slot.
|
Overrides
Operators
View Source
operator ==(UserDataSlot<TValue>, UserDataSlot<TValue>)
Declaration
public static bool operator ==(UserDataSlot<TValue> left, UserDataSlot<TValue> right)
Parameters
Returns
View Source
operator !=(UserDataSlot<TValue>, UserDataSlot<TValue>)
Declaration
public static bool operator !=(UserDataSlot<TValue> left, UserDataSlot<TValue> right)
Parameters
Returns
Implements
Extension Methods