DotNext by .NET Foundation and Contributors

<PackageReference Include="DotNext" Version="4.7.4" />

.NET API 552,344 bytes

 UserDataSlot<TValue>

public struct UserDataSlot<TValue> : IEquatable<UserDataSlot<TValue>>
Uniquely identifies user data which can be associated with any object.
public bool IsAllocated { get; }

Gets a value indicating that this object was constructed using #ctor constructor.

public UserDataSlot()

Allocates a new data slot.

public static UserDataSlot<TValue> Allocate()

Allocates a new data slot.

public static bool op_Equality(UserDataSlot<TValue> first, UserDataSlot<TValue> second)

Checks whether the two data slots are the same.

public static bool op_Inequality(UserDataSlot<TValue> first, UserDataSlot<TValue> second)

Checks whether the two data slots are not the same.

public bool Equals(UserDataSlot<TValue> other)

Checks whether the two data slots are the same.