Open this page in the API Guide

ModelDataExtensions.CopyAndConvertList<T1, T2> Method (IEnumerable<T1>, IList<T2>)

Namespace:  Dundas.BI.WebApi.Models
Assembly:  Dundas.BI.WebApiCore (in Dundas.BI.WebApiCore.dll) Version: 2.0.0.0 (25.1.0.1000)
Syntax
public static void CopyAndConvertList<T1, T2>(
	this IEnumerable<T1> source,
	IList<T2>? destination
)
where T2 : new()

Parameters

source
Type: System.Collections.Generic.IEnumerable<T1>
The source.
destination
Type: System.Collections.Generic.IList<T2>
The destination.

Type Parameters

T1
The type of the source.
T2
The type of the destination.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable<T1>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also