CopyTo Method
Definition
- Namespace
- Cuemon.Extensions.Collections.Generic
- Assemblies
- Cuemon.Extensions.Collections.Generic.dll
CopyTo<TKey, TValue>(IDictionary<TKey, TValue>, IDictionary<TKey, TValue>)
Copies all elements from source to destination.
public static IDictionary<TKey, TValue> CopyTo<TKey, TValue>(this IDictionary<TKey, TValue> source, IDictionary<TKey, TValue> destination)
Parameters
sourceIDictionary<TKey, TValue>The IDictionary<TKey, TValue> to extend.
destinationIDictionary<TKey, TValue>The IDictionary<TKey, TValue> to which the elements of the
sourcewill be copied.
Returns
- IDictionary<TKey, TValue>
An IDictionary<TKey, TValue> that is the result of the populated
destination.
Type Parameters
TKeyThe type of the keys in the dictionary.
TValueThe type of the values in the dictionary.
CopyTo<TKey, TValue>(IDictionary<TKey, TValue>, IDictionary<TKey, TValue>, Action<IDictionary<TKey, TValue>, IDictionary<TKey, TValue>>)
Copies elements from source to destination using the copier delegate.
public static IDictionary<TKey, TValue> CopyTo<TKey, TValue>(this IDictionary<TKey, TValue> source, IDictionary<TKey, TValue> destination, Action<IDictionary<TKey, TValue>, IDictionary<TKey, TValue>> copier)
Parameters
sourceIDictionary<TKey, TValue>The IDictionary<TKey, TValue> to extend.
destinationIDictionary<TKey, TValue>The IDictionary<TKey, TValue> to which the elements of the
sourcewill be copied.copierAction<IDictionary<TKey, TValue>, IDictionary<TKey, TValue>>The delegate that will populate a copy of
sourceto the specifieddestination.
Returns
- IDictionary<TKey, TValue>
An IDictionary<TKey, TValue> that is the result of the populated
destination.
Type Parameters
TKeyThe type of the keys in the dictionary.
TValueThe type of the values in the dictionary.