FastBindingListTAddNew Method

Adds a new item to the collection.

Definition

Namespace: KGySoft.ComponentModel
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 8.1.0
C#
public T AddNew()

Return Value

T
The item added to the list.

Remarks

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

Exceptions

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

See Also