Example #1
0
        /// <summary></summary>
        public override int GetHashCode()
        {
            var code = 13;

            // Calculate hash on each properties one by one
            code = (code * 7) + Id.GetHashCode();
            if (CreationTime != null)
            {
                code = (code * 7) + CreationTime.GetHashCode();
            }
            if (this.ActionTypeUrl != null)
            {
                code = (code * 7) + ActionTypeUrl.GetHashCode();
            }
            if (this.ActionType != null)
            {
                code = (code * 7) + ActionType.GetHashCode();
            }
            code = (code * 7) + Discarded.GetHashCode();
            if (this.StatusUrl != null)
            {
                code = (code * 7) + StatusUrl.GetHashCode();
            }
            if (this.Status != null)
            {
                code = (code * 7) + Status.GetHashCode();
            }
            if (this.ErrorString != null)
            {
                code = (code * 7) + ErrorString.GetHashCode();
            }
            if (this.User != null)
            {
                code = (code * 7) + User.GetHashCode();
            }
            if (this.ObjectUrl != null)
            {
                code = (code * 7) + ObjectUrl.GetHashCode();
            }
            if (this.AnnotationsUrl != null)
            {
                code = (code * 7) + AnnotationsUrl.GetHashCode();
            }
            if (this.Self != null)
            {
                code = (code * 7) + Self.GetHashCode();
            }
            return(code);
        }