예제 #1
0
        public override bool Equals(object?obj)
        {
            if (obj is IQuest other)
            {
                if (ReferenceEquals(this, other))
                {
                    return(true);
                }

                if (string.Compare(ThreadName.ToLowerInvariant(), other.ThreadName.ToLowerInvariant(), StringComparison.Ordinal) != 0)
                {
                    return(false);
                }

                return(string.Compare(DisplayName.ToLowerInvariant(), other.DisplayName.ToLowerInvariant(), StringComparison.Ordinal) == 0);
            }

            return(false);
        }
예제 #2
0
 protected virtual NavigationState GetScreenNavigationState()
 {
     return(new NavigationState {
         Url = DisplayName.ToLowerInvariant(), Title = DisplayName
     });
 }