FastBindingListTAddNewCore Method

Adds a new item to the collection.

Definition

Namespace: KGySoft.ComponentModel
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0
C#
protected virtual T AddNewCore()

Return Value

T
The item that was added to the collection.

Remarks

This is the overridable implementation of the AddNew method. The base implementation raises the AddingNew event. If it is not handled or returns , then tries to create a new instance of T and adds it to the end of the list.

Exceptions

InvalidOperationExceptionAddingNew is not subscribed or returned , and T is not a value type or has no parameterless constructor.

See Also