Table of Contents

Class NameValueCollectionExtensions

Namespace
System.Web.Mvc
Assembly
System.Web.Mvc.dll

Extends a NameValueCollection object so that the collection can be copied to a specified dictionary.

public static class NameValueCollectionExtensions
Inheritance
NameValueCollectionExtensions
Inherited Members

Methods

CopyTo(NameValueCollection, IDictionary<string, object>)

Copies the specified collection to the specified destination.

public static void CopyTo(this NameValueCollection collection, IDictionary<string, object> destination)

Parameters

collection NameValueCollection

The collection.

destination IDictionary<string, object>

The destination.

CopyTo(NameValueCollection, IDictionary<string, object>, bool)

Copies the specified collection to the specified destination, and optionally replaces previous entries.

public static void CopyTo(this NameValueCollection collection, IDictionary<string, object> destination, bool replaceEntries)

Parameters

collection NameValueCollection

The collection.

destination IDictionary<string, object>

The destination.

replaceEntries bool

true to replace previous entries; otherwise, false.