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); }
protected virtual NavigationState GetScreenNavigationState() { return(new NavigationState { Url = DisplayName.ToLowerInvariant(), Title = DisplayName }); }