Ejemplo n.º 1
0
        public override int GetHashCode()
        {
            unchecked
            {
                int hashCode = (_defaultJunctionClass != null
                                                        ? _defaultJunctionClass.GetHashCode()
                                                        : 0);
                hashCode = (hashCode * 397) ^ _defaultSubtype.GetHashCode();

                foreach (var classDef in NetworkClassDefinitions)
                {
                    hashCode = (hashCode * 397) ^ classDef.GetHashCode();
                }

                return(hashCode);
            }
        }