Sdl.Web.Common/Models/MvcData.cs
/// <summary>
/// Determines whether the specified object is equal to the current object.
/// </summary>
/// <param name="obj">The object to compare with the current object. </param>
Determines whether the specified object is equal to the current object.
Determines whether the specified object is equal to the current object .
public override bool Equals(object obj)
        {
            MvcData other = obj as MvcData;
            if (other == null)
            {
                return false;
            }
            if ((ControllerName != other.ControllerName) ||
                (ControllerAreaName != other.ControllerAreaName) ||
                (ActionName != other.ActionName) ||
                (ViewName != other.ViewName) ||
                (AreaName != other.AreaName))
            {
                return false;
            }
            if (RouteValues == null)
            {
                return other.RouteValues == null;
            }
            return RouteValues.SequenceEqual(other.RouteValues);
        }
public override bool Equals ( object obj ) { MvcData other = obj as MvcData ; if ( other == null ) { return false ; } if ( ( ControllerName != other . ControllerName ) || ( ControllerAreaName != other . ControllerAreaName ) || ( ActionName != other . ActionName ) || ( ViewName != other . ViewName ) || ( AreaName != other . AreaName ) ) { return false ; } if ( RouteValues == null ) { return other . RouteValues == null ; } return RouteValues . SequenceEqual ( other . RouteValues ) ; }
Determines whether the specified object is equal to the current object.
Determines whether the specified object is equal to the current object .
// NOTE: RegionName and RegionAreaName are not included in equality check (these merely carry some additional info).
obj
object
The object to compare with the current object.
The object to compare with the current object .