ObjectPool
Class
Reuses objects by runtime type; released instances are returned by later requests for that same type.
Definition
Namespace:Telerik.WinForms.Controls.SyntaxEditor.UI
Assembly:Telerik.WinControls.SyntaxEditor.dll
Syntax:
C#
public class ObjectPool
Inheritance: objectObjectPool
Constructors
Initializes an empty object pool.
C#
public ObjectPool()
Methods
Retrieves a pooled T instance or creates one when the pool has none available.
C#
public T CreateObject<T>() where T : new()
T
A pooled instance, or a new instance created with the parameterless constructor.
Stores an object under its runtime type so a later CreateObject<T>() request for that type can reuse it. This method does not reset the object's state.