[]
        
(Showing Draft Content)

C1.DataCollection.BindingList.C1BindingListDataCollectionEx.AsDataCollection

AsDataCollection Method

AsDataCollection(IBindingList)

Wraps the IBindingList into a data collection.

Declaration
[RequiresUnreferencedCode("Members of types used in the bindingList and bindingList interfaces might be trimmed.")]
public static C1BindingListDataCollection AsDataCollection(this IBindingList bindingList)
<RequiresUnreferencedCode("Members of types used in the bindingList and bindingList interfaces might be trimmed.")>
Public Shared Function AsDataCollection(bindingList As IBindingList) As C1BindingListDataCollection
Parameters
Type Name Description
IBindingList bindingList

The binding list.

Returns
Type Description
C1BindingListDataCollection

AsDataCollection(DataTable)

Wraps the DataTable into a data collection.

Declaration
[UnconditionalSuppressMessage("Trimming", "IL2026", Justification = "The members of dataTable rows and the interfaces will be available at runtime")]
public static C1BindingListDataCollection AsDataCollection(this DataTable dataTable)
<UnconditionalSuppressMessage("Trimming", "IL2026", Justification:="The members of dataTable rows and the interfaces will be available at runtime")>
Public Shared Function AsDataCollection(dataTable As DataTable) As C1BindingListDataCollection
Parameters
Type Name Description
DataTable dataTable

The data table.

Returns
Type Description
C1BindingListDataCollection