protected virtual T AddNewCore()
Protected Overridable Function AddNewCore As T
protected:
virtual T AddNewCore()
abstract AddNewCore : unit -> 'T
override AddNewCore : unit -> 'T
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.
InvalidOperationException | AddingNew is not subscribed or returned , and T is not a value type or has no parameterless constructor. |