ModuleListPageGrouping.Equals(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines whether two ModuleListPageGrouping objects are equal.
public:
override bool Equals(System::Object ^ obj);
public override bool Equals (object obj);
override this.Equals : obj -> bool
Public Overrides Function Equals (obj As Object) As Boolean
Parameters
- obj
- Object
The ModuleListPageGrouping object to compare.
Returns
true
if the objects are equal; otherwise, false
.
Examples
The following example implements the Equals(Object) overload.
public override bool Equals(object obj) {
ModuleListPageGrouping grouping =
obj as ModuleListPageGrouping;
if (grouping == null)
return false;
return String.Equals(grouping.Name, Name) &&
String.Equals(grouping.Text, Text);
}
Remarks
This method returns true
when both the Text and Name properties of the two objects are equal.