ModelDataExtensionsCopyAndConvertListT1, T2 Method (IEnumerableT1, ICollectionT2, ReadOnlyDictionaryString, ActionT1, T2) |
Namespace:
Dundas.BI.WebApi.Models
Assembly:
Dundas.BI.WebApiCore (in Dundas.BI.WebApiCore.dll) Version: 2.0.0.0 (24.1.0.1000)
Syntax public static void CopyAndConvertList<T1, T2>(
this IEnumerable<T1> source,
ICollection<T2> destination,
ReadOnlyDictionary<string, Action<T1, T2>> mappingRules
)
where T2 : new()
<ExtensionAttribute>
Public Shared Sub CopyAndConvertList(Of T1, T2 As New) (
source As IEnumerable(Of T1),
destination As ICollection(Of T2),
mappingRules As ReadOnlyDictionary(Of String, Action(Of T1, T2))
)
public:
[ExtensionAttribute]
generic<typename T1, typename T2>
where T2 : gcnew()
static void CopyAndConvertList(
IEnumerable<T1>^ source,
ICollection<T2>^ destination,
ReadOnlyDictionary<String^, Action<T1, T2>^>^ mappingRules
)
[<ExtensionAttribute>]
static member CopyAndConvertList :
source : IEnumerable<'T1> *
destination : ICollection<'T2> *
mappingRules : ReadOnlyDictionary<string, Action<'T1, 'T2>> -> unit when 'T2 : new()
Parameters
- source
- Type: System.Collections.GenericIEnumerableT1
The source. - destination
- Type: System.Collections.GenericICollectionT2
The destination. - mappingRules
- Type: System.Collections.ObjectModelReadOnlyDictionaryString, ActionT1, T2
The mapping rules.
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
IEnumerableT1. 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