 | CollectionChangedEventArgsTCreate Method |
Creates an instance of the
CollectionChangedEventArgsT class. (This method
reuses a previously recycled instance or allocates a new instance if necessary.)
Namespace: DigitalRune.CollectionsAssembly: DigitalRune (in DigitalRune.dll) Version: 1.20.0.0 (1.20.1.14552)
Syntaxpublic static CollectionChangedEventArgs<T> Create()
Public Shared Function Create As CollectionChangedEventArgs(Of T)
public:
static CollectionChangedEventArgs<T>^ Create()
static member Create : unit -> CollectionChangedEventArgs<'T>
Return Value
Type:
CollectionChangedEventArgsT
A new or reusable instance of the
CollectionChangedEventArgsT class.
Remarks
This method tries to obtain a previously recycled instance from a resource pool if resource
pooling is enabled (see ResourcePool.Enabled). If no
object is available, a new instance is automatically allocated on the heap.
The owner of the object should call Recycle when the instance is no longer
needed.
See Also