Click or drag to resize

InternReclaimableEventArgs Class

[This is preliminary documentation and is subject to change.]

Event args provided to a InternedValueReclaimable event handler, intended to help decide whether a cleanup operation should be performed.
Inheritance Hierarchy
SystemObject
  SystemEventArgs
    CondensedInternReclaimableEventArgs

Namespace:  Condensed
Assembly:  Condensed (in Condensed.dll) Version: 0.1.0.0 (0.1.0.0)
Syntax
public class InternReclaimableEventArgs : EventArgs

The InternReclaimableEventArgs type exposes the following members.

Properties
  NameDescription
Public propertyCleanup
Gets/sets a value indicating whether the collection should be cleaned up after the event handler completes. Default is false.
Public propertyCount
Count of items currently in the collection.
Public propertyInternPoolCount
Count of items currently in the collection's intern pool.
Public propertyReclaimableInternsCount
Count of unused items in the collection's intern pool that would be freed (made eligible for GC) by a cleanup operation.
Public propertyUniqueCount
Count of unique items currently in the collection.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks

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.

See Also