Example #1
0
        public override int GetHashCode()
        {
            int hashIndentTitle = Title == null ? 0 : Title.GetHashCode();

            int hashIndentId = IndentId.GetHashCode();

            return(hashIndentTitle ^ hashIndentId);
        }
Example #2
0
        public bool Equals(Indent other)
        {
            if (Object.ReferenceEquals(other, null))
            {
                return(false);
            }

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

            return(IndentId.Equals(other.IndentId) && Title.Equals(other.Title));
        }