Ejemplo n.º 1
0
        /// <summary>
        ///     Gets the hash code
        /// </summary>
        /// <returns>Hash code</returns>
        public override int GetHashCode()
        {
            // credit: http://stackoverflow.com/a/263416/677735
            unchecked // Overflow is fine, just wrap
            {
                var hash = 41;
                // Suitable nullity checks etc, of course :)

                if (Rid != null)
                {
                    hash = hash * 57 + Rid.GetHashCode();
                }

                if (Count != null)
                {
                    hash = hash * 57 + Count.GetHashCode();
                }

                if (ResourceArray != null)
                {
                    hash = hash * 57 + ResourceArray.GetHashCode();
                }

                return(hash);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        ///     Gets the hash code
        /// </summary>
        /// <returns>Hash code</returns>
        public override int GetHashCode()
        {
            // credit: http://stackoverflow.com/a/263416/677735
            unchecked // Overflow is fine, just wrap
            {
                var hash = 41;
                // Suitable nullity checks etc, of course :)

                if (Rid != null)
                {
                    hash = hash * 57 + Rid.GetHashCode();
                }

                if (Count != null)
                {
                    hash = hash * 57 + Count.GetHashCode();
                }

                if (ResourceArray != null)
                {
                    hash = hash * 57 + ResourceArray.GetHashCode();
                }

                if (Date != null)
                {
                    hash = hash * 57 + Date.GetHashCode();
                }

                if (XMsItemCount != null)
                {
                    hash = hash * 57 + XMsItemCount.GetHashCode();
                }

                if (XMsContinuation != null)
                {
                    hash = hash * 57 + XMsContinuation.GetHashCode();
                }

                if (XMsRequestCharge != null)
                {
                    hash = hash * 57 + XMsRequestCharge.GetHashCode();
                }

                if (XMsActivityId != null)
                {
                    hash = hash * 57 + XMsActivityId.GetHashCode();
                }

                if (XMsSessionToken != null)
                {
                    hash = hash * 57 + XMsSessionToken.GetHashCode();
                }

                return(hash);
            }
        }
Ejemplo n.º 3
0
        /// <summary>
        ///     Gets the hash code
        /// </summary>
        /// <returns>Hash code</returns>
        public override int GetHashCode()
        {
            // credit: http://stackoverflow.com/a/263416/677735
            unchecked // Overflow is fine, just wrap
            {
                var hash = 41;
                // Suitable nullity checks etc, of course :)

                if (ContentType != null)
                {
                    hash = hash * 57 + ContentType.GetHashCode();
                }

                if (Slug != null)
                {
                    hash = hash * 57 + Slug.GetHashCode();
                }

                if (UserAgent != null)
                {
                    hash = hash * 57 + UserAgent.GetHashCode();
                }

                if (Id != null)
                {
                    hash = hash * 57 + Id.GetHashCode();
                }

                if (Rid != null)
                {
                    hash = hash * 57 + Rid.GetHashCode();
                }

                if (Ts != null)
                {
                    hash = hash * 57 + Ts.GetHashCode();
                }

                if (Self != null)
                {
                    hash = hash * 57 + Self.GetHashCode();
                }

                if (Etag != null)
                {
                    hash = hash * 57 + Etag.GetHashCode();
                }

                if (Permissions != null)
                {
                    hash = hash * 57 + Permissions.GetHashCode();
                }

                return(hash);
            }
        }
Ejemplo n.º 4
0
        /// <summary>
        ///     Gets the hash code
        /// </summary>
        /// <returns>Hash code</returns>
        public override int GetHashCode()
        {
            // credit: http://stackoverflow.com/a/263416/677735
            unchecked // Overflow is fine, just wrap
            {
                var hash = 41;
                // Suitable nullity checks etc, of course :)

                if (Id != null)
                {
                    hash = hash * 57 + Id.GetHashCode();
                }

                if (Body != null)
                {
                    hash = hash * 57 + Body.GetHashCode();
                }

                if (TriggerOperation != null)
                {
                    hash = hash * 57 + TriggerOperation.GetHashCode();
                }

                if (TriggerType != null)
                {
                    hash = hash * 57 + TriggerType.GetHashCode();
                }

                if (Rid != null)
                {
                    hash = hash * 57 + Rid.GetHashCode();
                }

                if (Ts != null)
                {
                    hash = hash * 57 + Ts.GetHashCode();
                }

                if (Self != null)
                {
                    hash = hash * 57 + Self.GetHashCode();
                }

                if (Etag != null)
                {
                    hash = hash * 57 + Etag.GetHashCode();
                }

                return(hash);
            }
        }
Ejemplo n.º 5
0
        /// <summary>
        ///     Gets the hash code
        /// </summary>
        /// <returns>Hash code</returns>
        public override int GetHashCode()
        {
            // credit: http://stackoverflow.com/a/263416/677735
            unchecked // Overflow is fine, just wrap
            {
                var hash = 41;
                // Suitable nullity checks etc, of course :)

                if (Id != null)
                {
                    hash = hash * 57 + Id.GetHashCode();
                }

                if (Rid != null)
                {
                    hash = hash * 57 + Rid.GetHashCode();
                }

                if (Databases != null)
                {
                    hash = hash * 57 + Databases.GetHashCode();
                }

                if (Ts != null)
                {
                    hash = hash * 57 + Ts.GetHashCode();
                }

                if (Self != null)
                {
                    hash = hash * 57 + Self.GetHashCode();
                }

                if (Etag != null)
                {
                    hash = hash * 57 + Etag.GetHashCode();
                }

                if (Colls != null)
                {
                    hash = hash * 57 + Colls.GetHashCode();
                }

                if (Users != null)
                {
                    hash = hash * 57 + Users.GetHashCode();
                }

                return(hash);
            }
        }
Ejemplo n.º 6
0
        /// <summary>
        ///     Gets the hash code
        /// </summary>
        /// <returns>Hash code</returns>
        public override int GetHashCode()
        {
            // credit: http://stackoverflow.com/a/263416/677735
            unchecked // Overflow is fine, just wrap
            {
                var hash = 41;
                // Suitable nullity checks etc, of course :)

                if (Id != null)
                {
                    hash = hash * 57 + Id.GetHashCode();
                }

                if (PermissionMode != null)
                {
                    hash = hash * 57 + PermissionMode.GetHashCode();
                }

                if (Resource != null)
                {
                    hash = hash * 57 + Resource.GetHashCode();
                }

                if (Rid != null)
                {
                    hash = hash * 57 + Rid.GetHashCode();
                }

                if (Ts != null)
                {
                    hash = hash * 57 + Ts.GetHashCode();
                }

                if (Self != null)
                {
                    hash = hash * 57 + Self.GetHashCode();
                }

                if (Etag != null)
                {
                    hash = hash * 57 + Etag.GetHashCode();
                }

                if (Token != null)
                {
                    hash = hash * 57 + Token.GetHashCode();
                }

                return(hash);
            }
        }
Ejemplo n.º 7
0
        /// <summary>
        ///     Gets the hash code
        /// </summary>
        /// <returns>Hash code</returns>
        public override int GetHashCode()
        {
            // credit: http://stackoverflow.com/a/263416/677735
            unchecked // Overflow is fine, just wrap
            {
                var hash = 41;
                // Suitable nullity checks etc, of course :)

                if (Id != null)
                {
                    hash = hash * 57 + Id.GetHashCode();
                }

                if (Rid != null)
                {
                    hash = hash * 57 + Rid.GetHashCode();
                }

                if (Ts != null)
                {
                    hash = hash * 57 + Ts.GetHashCode();
                }

                if (Self != null)
                {
                    hash = hash * 57 + Self.GetHashCode();
                }

                if (Etag != null)
                {
                    hash = hash * 57 + Etag.GetHashCode();
                }

                if (Doc != null)
                {
                    hash = hash * 57 + Doc.GetHashCode();
                }

                if (Sprocs != null)
                {
                    hash = hash * 57 + Sprocs.GetHashCode();
                }

                if (Triggers != null)
                {
                    hash = hash * 57 + Triggers.GetHashCode();
                }

                if (Udfs != null)
                {
                    hash = hash * 57 + Udfs.GetHashCode();
                }

                if (Conflicts != null)
                {
                    hash = hash * 57 + Conflicts.GetHashCode();
                }

                if (IndexingPolicy != null)
                {
                    hash = hash * 57 + IndexingPolicy.GetHashCode();
                }

                return(hash);
            }
        }