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.GetType()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: DotNext
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
public UserDataSlot()

Properties

View Source

IsAllocated

Gets a value indicating that this object was constructed by UserDataSlot() constructor.

Declaration
public bool IsAllocated { get; }
Property Value
Type Description
bool

Methods

View Source

Equals(UserDataSlot<TValue>)

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

Equals(object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
object obj
Returns
Type Description
bool
Overrides
ValueType.Equals(object)
View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
ValueType.GetHashCode()
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

View Source

operator ==(UserDataSlot<TValue>, UserDataSlot<TValue>)

Declaration
public static bool operator ==(UserDataSlot<TValue> left, UserDataSlot<TValue> right)
Parameters
Type Name Description
UserDataSlot<TValue> left
UserDataSlot<TValue> right
Returns
Type Description
bool
View Source

operator !=(UserDataSlot<TValue>, UserDataSlot<TValue>)

Declaration
public static bool operator !=(UserDataSlot<TValue> left, UserDataSlot<TValue> right)
Parameters
Type Name Description
UserDataSlot<TValue> left
UserDataSlot<TValue> right
Returns
Type Description
bool

Implements

IEquatable<T>

Extension Methods

BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, params ReadOnlySpan<T>)
Enumerator.Skip<TEnumerator, T>(ref TEnumerator, int)
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾