Share via


ModuleListPageGrouping.Equals(Object) Method

Definition

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.

Applies to