C# Class Rolcore.Collections.Specialized.NameValueCollectionEx

Extends NameValueCollection to provide a read-only option.
Inheritance: System.Collections.Specialized.NameValueCollection
显示文件 Open project: Rollins/Rolcore Class Usage Examples

Public Methods

Method Description
NameValueCollectionEx ( ) : System

Initializes a new instance of the NameValueCollectionEx class.

NameValueCollectionEx ( IEqualityComparer equalityComparer ) : System
NameValueCollectionEx ( NameValueCollection col ) : System

Copies the entries from the specified NameValueCollection to a new NameValueCollectionEx with the same initial capacity as the number of entries copied and using the same hash code provider and the same comparer as the source collection.

NameValueCollectionEx ( int capacity ) : System

Initializes a new instance of the NameValueCollectionEx class that is empty, has the specified initial capacity and uses the default case-insensitive hash code provider and the default case-insensitive comparer.

NameValueCollectionEx ( int capacity, IEqualityComparer equalityComparer ) : System
NameValueCollectionEx ( int capacity, NameValueCollection col ) : System
ToReadOnly ( ) : NameValueCollectionEx

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

Protected Methods

Method Description
NameValueCollectionEx ( SerializationInfo info, StreamingContext context ) : System

Initializes a new instance of the NameValueCollectionEx class.

Method Details

NameValueCollectionEx() public method

Initializes a new instance of the NameValueCollectionEx class.
public NameValueCollectionEx ( ) : System
return System

NameValueCollectionEx() public method

public NameValueCollectionEx ( IEqualityComparer equalityComparer ) : System
equalityComparer IEqualityComparer
return System

NameValueCollectionEx() public method

Copies the entries from the specified NameValueCollection to a new NameValueCollectionEx with the same initial capacity as the number of entries copied and using the same hash code provider and the same comparer as the source collection.
public NameValueCollectionEx ( NameValueCollection col ) : System
col System.Collections.Specialized.NameValueCollection The System.Collections.Specialized.NameValueCollection to copy to the /// new instance.
return System

NameValueCollectionEx() protected method

Initializes a new instance of the NameValueCollectionEx class.
protected NameValueCollectionEx ( SerializationInfo info, StreamingContext context ) : System
info SerializationInfo A System.Runtime.Serialization.SerializationInfo object that /// contains the information required to serialize the new /// instance.
context StreamingContext A object that contains the source /// and destination of the serialized stream associated with the new /// instance.
return System

NameValueCollectionEx() public method

Initializes a new instance of the NameValueCollectionEx class that is empty, has the specified initial capacity and uses the default case-insensitive hash code provider and the default case-insensitive comparer.
public NameValueCollectionEx ( int capacity ) : System
capacity int The initial number of entries that the /// can contain.
return System

NameValueCollectionEx() public method

public NameValueCollectionEx ( int capacity, IEqualityComparer equalityComparer ) : System
capacity int
equalityComparer IEqualityComparer
return System

NameValueCollectionEx() public method

public NameValueCollectionEx ( int capacity, NameValueCollection col ) : System
capacity int
col System.Collections.Specialized.NameValueCollection
return System

ToReadOnly() public method

Creates a copy of the current instance that is read-only. IsReadOnly
public ToReadOnly ( ) : NameValueCollectionEx
return NameValueCollectionEx