Show / Hide Table of Contents

Class Reserved<T>

A wrapper around a shared pointer that reduces the reference count once out of scope.

Inheritance
object
Reserved<T>
Implements
IDisposable
IAsyncDisposable
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Microsoft.XboxStudios.ClientManager
Assembly: ClientManager.Abstractions.dll
Syntax
public class Reserved<T> : IDisposable, IAsyncDisposable
Type Parameters
Name Description
T

The type of the value to reserve.

Remarks

Initializes a new instance of the Reserved<T> class.

Constructors

View Source

Reserved(ISharedRef<T>)

A wrapper around a shared pointer that reduces the reference count once out of scope.

Declaration
public Reserved(ISharedRef<T> sharedRef)
Parameters
Type Name Description
ISharedRef<T> sharedRef

A ISharedRef<TValue> to T.

Remarks

Initializes a new instance of the Reserved<T> class.

Properties

View Source

Value

Gets the value of the reserved object.

Declaration
public T Value { get; }
Property Value
Type Description
T
Exceptions
Type Condition
ObjectDisposedException

is thrown if this class is disposed.

Methods

View Source

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Declaration
public void Dispose()
View Source

DisposeAsync()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.

Declaration
public ValueTask DisposeAsync()
Returns
Type Description
ValueTask

A task that represents the asynchronous dispose operation.

Implements

IDisposable
IAsyncDisposable
  • View Source
In this article
Back to top Generated by DocFX