Share via


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

Type Parameters

  • T
    The type of collections.

See Also

ModelCopier Class
Microsoft.Web.Mvc Namespace

Return to top