InternReclaimableEventArgs Class |
[This is preliminary documentation and is subject to change.]
Namespace: Condensed
The InternReclaimableEventArgs type exposes the following members.
| Name | Description | |
|---|---|---|
| Cleanup |
Gets/sets a value indicating whether the collection should be cleaned up after the event handler completes.
Default is false.
| |
| Count |
Count of items currently in the collection.
| |
| InternPoolCount |
Count of items currently in the collection's intern pool.
| |
| ReclaimableInternsCount |
Count of unused items in the collection's intern pool that
would be freed (made eligible for GC) by a cleanup operation.
| |
| UniqueCount |
Count of unique items currently in the collection.
|
| Name | Description | |
|---|---|---|
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |
Set the Cleanup property to true in your event handler to have the collection perform a cleanup operation when the event handler completes.
Cleanups are expensive and typically should not be performed every time the event is raised; consider cleaning up only when the InternPoolCount is significantly larger than the UniqueCount.