ReusableArray<T> Class

Visual Studio 2015
 

Stores a reusable array. The size of the array can be either the requested size exactly or at least the requested size, depending on the value of the requiresExactSize parameter.

Namespace:   Microsoft.VisualStudio.Utilities
Assembly:  Microsoft.VisualStudio.Utilities (in Microsoft.VisualStudio.Utilities.dll)


public class ReusableArray<T> : ReusableResourceStore<T[], int>

Type Parameters

T

The type of array to construct.

NameDescription
System_CAPS_pubmethodReusableArray<T>(Boolean, Int32)

Creates a new reusable array.

NameDescription
System_CAPS_pubmethodAcquire(TConstructorParameter)

Acquires a cached instance of the resource, or allocates a new instance if none are currently available. This is a disposable object that should be disposed when usage of the resource is complete.(Inherited from ReusableResourceStore<TResource, TConstructorParameter>.)

System_CAPS_protmethodAcquireCore()

Gets access to the resource stored by this object, and removes the resource so that subsequent callers cannot be handed the same resource at the same time.(Inherited from ReusableResourceStoreBase<TResource>.)

System_CAPS_protmethodAllocate(Int32)
System_CAPS_protmethodCanReuse(T[], Int32)
System_CAPS_protmethodCleanup(T[])

Determines whether the length of the array is less than or equal to the maximum cache size.(Overrides ReusableResourceStoreBase<TResource>.Cleanup(TResource).)

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: