ReusableResourceHolder<TResource> Structure
Holds a reference to a shared resource allocated by a ReusableResourceStoreBase and releases the resource back to the ReusableResourceStoreBase upon dispose.
Assembly: Microsoft.VisualStudio.Utilities (in Microsoft.VisualStudio.Utilities.dll)
| Name | Description | |
|---|---|---|
![]() | Resource | Gets the resource stored by this resource holder. After this object is disposed, returns null. |
| Name | Description | |
|---|---|---|
![]() | Dispose() | Disposes of the resource, releasing it back to the ReusableResourceStore it came from. |
![]() | Equals(Object) | (Inherited from ValueType.) |
![]() | GetHashCode() | (Inherited from ValueType.) |
![]() | GetType() | (Inherited from Object.) |
![]() | ToString() | (Inherited from ValueType.) |
The type parameter must be a value type for ReusableResourceStore to be efficient. Using a reference type would require an allocation on each call, which would defeat the memory allocation savings of using ReusableResourceStore and ReusableResourceHolder in the first place.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

