[]
        
(Showing Draft Content)

C1.DataCollection.IDataCollectionEx.AsDataCollection

AsDataCollection Method

AsDataCollection<T>(IEnumerable)

Wraps an IEnumerable into a data collection.

Declaration
public static IDataCollection<T> AsDataCollection<T>(this IEnumerable source) where T : class?
Parameters
Type Name Description
IEnumerable source

The source of the data collection.

Returns
Type Description
IDataCollection<T>
Type Parameters
Name Description
T

The type of the data collection.

AsDataCollection<T>(IEnumerable<T>)

Wraps an IEnumerable into a data collection.

Declaration
public static IDataCollection<T> AsDataCollection<T>(this IEnumerable<T> source) where T : class?
Parameters
Type Name Description
IEnumerable<T> source

The source of the data collection.

Returns
Type Description
IDataCollection<T>
Type Parameters
Name Description
T

The type of the data collection.