Method Equals
Equals(object?)
Determines whether two object instances are equal.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
- bool
trueif the specified object is equal to the current object; otherwise,false.
Equals(MenuItemRole?)
Determines whether the current MenuItemRole instance is equal to the specified MenuItemRole instance.
public bool Equals(MenuItemRole? other)
Parameters
otherMenuItemRoleThe MenuItemRole instance to compare with the current instance, or null.
Returns
- bool
true if the specified MenuItemRole instance is equal to the current instance; otherwise, false.