ModelCopier.CopyCollection<T> Method (IEnumerable<T>, ICollection<T>)
Copies the values between two collection objects.
Namespace: Microsoft.Web.Mvc
Assembly: Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)
Syntax
public static void CopyCollection<T>(
IEnumerable<T> from,
ICollection<T> to
)
public:
generic<typename T>
static void CopyCollection(
IEnumerable<T>^ from,
ICollection<T>^ to
)
static member CopyCollection<'T> :
from:IEnumerable<'T> *
to:ICollection<'T> -> unit
Public Shared Sub CopyCollection(Of T) (
from As IEnumerable(Of T),
to As ICollection(Of T)
)
Parameters
from
Type: System.Collections.Generic.IEnumerable<T>The type from objects to enumerate.
to
Type: System.Collections.Generic.ICollection<T>The methods to manipulate generic collections.
Type Parameters
- T
The type of collections.
See Also
ModelCopier Class
Microsoft.Web.Mvc Namespace
Return to top