ReusableArray<T> Class
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.
Assembly: Microsoft.VisualStudio.Utilities (in Microsoft.VisualStudio.Utilities.dll)
Microsoft.VisualStudio.Utilities.ReusableResourceStoreBase<TResource>
Microsoft.VisualStudio.Utilities.ReusableResourceStore<TResource, TConstructorParameter>
Microsoft.VisualStudio.Utilities.ReusableArray<T>
| Name | Description | |
|---|---|---|
![]() | ReusableArray<T>(Boolean, Int32) | Creates a new reusable array. |
| Name | Description | |
|---|---|---|
![]() | Acquire(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>.) |
![]() | AcquireCore() | 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>.) |
![]() | Allocate(Int32) | Allocates the specified amount of space.(Overrides ReusableResourceStore<TResource, TConstructorParameter>.Allocate(TConstructorParameter).) |
![]() | CanReuse(T[], Int32) | Determines whether the array can be reused.(Overrides ReusableResourceStore<TResource, TConstructorParameter>.CanReuse(TResource, TConstructorParameter).) |
![]() | Cleanup(T[]) | Determines whether the length of the array is less than or equal to the maximum cache size.(Overrides ReusableResourceStoreBase<TResource>.Cleanup(TResource).) |
![]() | Equals(Object) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | ToString() | (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.

