C# Class Rolcore.Collections.Specialized.NameValueCollectionExtensions

Provides extension methods related to NameValueCollection.
Show file Open project: Rollins/Rolcore

Public Methods

Method Description
FromKeys ( this collection ) : NameValueCollection
IsEquivalentTo ( this value, NameValueCollection compare ) : bool

Determines if the NameValueCollections contain exactly the same keys and values.

ToNameValueCollection ( this value, char listItemSeperator, char keyValueSeperator ) : NameValueCollection

Creates a NameValueCollection from the specified string and seperators.

ToReadOnly ( this value ) : NameValueCollection

Creates a copy of the current instance that is read-only.

Method Details

FromKeys() public static method

public static FromKeys ( this collection ) : NameValueCollection
collection this
return System.Collections.Specialized.NameValueCollection

IsEquivalentTo() public static method

Determines if the NameValueCollections contain exactly the same keys and values.
public static IsEquivalentTo ( this value, NameValueCollection compare ) : bool
value this The first to compare.
compare System.Collections.Specialized.NameValueCollection The other to compare.
return bool

ToNameValueCollection() public static method

Creates a NameValueCollection from the specified string and seperators.
public static ToNameValueCollection ( this value, char listItemSeperator, char keyValueSeperator ) : NameValueCollection
value this Specifies the string that is to be converted to a /// .
listItemSeperator char Specifies the character that separates name-value /// entries.
keyValueSeperator char Specifies the character that separates the name from /// the value in each name-value pair.
return System.Collections.Specialized.NameValueCollection

ToReadOnly() public static method

Creates a copy of the current instance that is read-only.
public static ToReadOnly ( this value ) : NameValueCollection
value this Specifies the collection to convert to read-only.
return System.Collections.Specialized.NameValueCollection