Show / Hide Table of Contents

Struct UserDataSlot<TValue>

Uniquely identifies user data which can be associated with any object.

Implements
IEquatable<UserDataSlot<TValue>>
Inherited Members
Object.Equals(Object, Object)
Object.GetType()
Object.ReferenceEquals(Object, Object)
Namespace: DotNext
Assembly: DotNext.dll
Syntax
public struct UserDataSlot<TValue> : IEquatable<UserDataSlot<TValue>>
Type Parameters
Name Description
TValue

The type of the value stored in user data slot.

Methods

| Improve this Doc View Source

Allocate()

Allocates a new data slot.

Declaration
public static UserDataSlot<TValue> Allocate()
Returns
Type Description
UserDataSlot<TValue>

Allocated data slot.

| Improve this Doc View Source

Equals(UserDataSlot<TValue>)

Checks whether the two data slots are the same.

Declaration
public bool Equals(UserDataSlot<TValue> other)
Parameters
Type Name Description
UserDataSlot<TValue> other

Other data slot to check.

Returns
Type Description
Boolean

true if both data slots identifies the same data key.

| Improve this Doc View Source

Equals(Object)

Checks whether the two data slots are the same.

Declaration
public override bool Equals(object other)
Parameters
Type Name Description
Object other

Other data slot to check.

Returns
Type Description
Boolean

true if both data slots identifies the same data key.

Overrides
ValueType.Equals(Object)
| Improve this Doc View Source

GetHashCode()

Computes hash code for this data slot.

Declaration
public override int GetHashCode()
Returns
Type Description
Int32

Hash code.

Overrides
ValueType.GetHashCode()
| Improve this Doc 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
ValueType.ToString()

Operators

| Improve this Doc View Source

Equality(UserDataSlot<TValue>, UserDataSlot<TValue>)

Checks whether the two data slots are the same.

Declaration
public static bool operator ==(UserDataSlot<TValue> first, UserDataSlot<TValue> second)
Parameters
Type Name Description
UserDataSlot<TValue> first

The first data slot to check.

UserDataSlot<TValue> second

The second data slot to check.

Returns
Type Description
Boolean

true if both data slots identifies the same data key.

| Improve this Doc View Source

Inequality(UserDataSlot<TValue>, UserDataSlot<TValue>)

Checks whether the two data slots are not the same.

Declaration
public static bool operator !=(UserDataSlot<TValue> first, UserDataSlot<TValue> second)
Parameters
Type Name Description
UserDataSlot<TValue> first

The first data slot to check.

UserDataSlot<TValue> second

The second data slot to check.

Returns
Type Description
Boolean

false if both data slots identifies the same data key.

Implements

System.IEquatable<T>

Extension Methods

ValueTypeExtensions.IsOneOf<T>(T, IEnumerable<T>)
ValueTypeExtensions.IsOneOf<T>(T, T[])
Sequence.Skip<TEnumerator, T>(ref TEnumerator, Int32)
ExpressionBuilder.Const<T>(T)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX