Determines whether the specified NameValueCollection
is equal to the current NameValueCollection.
Namespace: CodeSmith.CustomPropertiesAssembly: CodeSmith.CustomProperties (in CodeSmith.CustomProperties.dll) Version: 6.0.0.0 (7.0.0.15127)
Syntax
C# |
---|
public virtual bool Equals( NameValueCollection collection ) |
Visual Basic |
---|
Public Overridable Function Equals ( collection As NameValueCollection ) As Boolean |
Parameters
- collection
- Type: CodeSmith.CustomProperties..::..NameValueCollection
The NameValueCollection to compare with the current NameValueCollection.
Return Value
Type: Booleantrue if the specified NameValueCollection is equal to the current NameValueCollection; otherwise, false.
Remarks
This Equals overload tests for value equality of all NameValueEntry elements contained in the two NameValueCollection collections.
Equals returns false if collection is a null reference, holds a different number of elements, or holds at least one NameValueEntry element at a given index position whose key and/or value is different from that of the element at the same index position in this NameValueCollection, as determined by the inequality operators defined by String and String.