コード例 #1
0
        public bool Equals(NavigateData other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }

            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(Equals(other.Controller.ToLower(), Controller.ToLower()) && Equals(other.Action.ToLower(), Action.ToLower()));
        }
        public static NavigateData GetNavigation(NavigateData navigateData)
        {
            NavigateData navTo;

            return(_navigationDictionary.TryGetValue(navigateData, out navTo) ? navTo : null);
        }