ReusableResourceStoreBase<TResource> Class

Visual Studio 2015
 

Provides a base class for storing a frequently-used object that can be reused instead of reallocated, such as StringBuilders or small arrays.

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


public abstract class ReusableResourceStoreBase<TResource>
where TResource : class

Type Parameters

TResource

The type of object stored.

NameDescription
System_CAPS_protmethodReusableResourceStoreBase<TResource>()

Initializes a new instance of ReusableResourceStoreBase.

NameDescription
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.

System_CAPS_protmethodCleanup(TResource)

Immediately before releasing an object, performs cleanup on that object. This might be necessary to clean up state stored in the object to prevent leaking memory.

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: