KGy SOFT

FastBindingListTAddNew 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

public T AddNew()

Return Value

Type: T
The item added to the list.
Exceptions

ExceptionCondition
InvalidOperationExceptionThe AllowNew property returns
-or-
AddingNew is not subscribed or returned , and T is not a value type or has no parameterless constructor.
Remarks

To customize the behavior either subscribe the AddingNew event or override the AddNewCore method in a derived class.

See Also

Reference