KGy SOFT

FastBindingListTAddNewCore Method

KGy SOFT Core Libraries Help
Adds a new item to the collection.

Namespace:  KGySoft.ComponentModel
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 6.0.0-rc.1
Syntax

protected virtual T AddNewCore()

Return Value

Type: T
The item that was added to the collection.
Exceptions

ExceptionCondition
InvalidOperationExceptionAddingNew is not subscribed or returned , and T is not a value type or has no parameterless constructor.
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.

See Also

Reference