CreateNewItem Method
CreateNewItem<T>(IDataCollection<T>)
Creates a new item of the collection.
Declaration
[UnconditionalSuppressMessage("Trimming", "IL2072", Justification = "The public constructor of type T is annotated but subclasses types returned by GetItemType() can not be annotated.")]
public static T? CreateNewItem<T>(this IDataCollection<T> dataCollection) where T : class?
<UnconditionalSuppressMessage("Trimming", "IL2072", Justification:="The public constructor of type T is annotated but subclasses types returned by GetItemType() can not be annotated.")>
Public Shared Function CreateNewItem(Of T As Class)(dataCollection As IDataCollection(Of T)) As T
Parameters
| Type |
Name |
Description |
| IDataCollection<T> |
dataCollection |
The data collection.
|
Returns
Type Parameters