Esempio n. 1
0
 public TransactionScope(
     TransactionTimeout arg0,
     bool arg1
     )
 {
     field0 = arg0;
     field1 = arg1;
 }
Esempio n. 2
0
        /// <summary>
        ///     Gets the hash code for the current object.
        /// </summary>
        /// <returns>
        ///     A hash code for the current object.
        /// </returns>
        public override int GetHashCode( )
        {
            unchecked
            {
                int hash = 17;

                if (Server != null)
                {
                    hash = hash * 92821 + Server.GetHashCode( );
                }

                if (Database != null)
                {
                    hash = hash * 92821 + Database.GetHashCode( );
                }

                hash = hash * 92821 + Authentication.GetHashCode( );

                if (Credentials != null)
                {
                    hash = hash * 92821 + Credentials.GetHashCode( );
                }

                hash = hash * 92821 + ConnectionTimeout.GetHashCode( );

                hash = hash * 92821 + CommandTimeout.GetHashCode( );

                hash = hash * 92821 + TransactionTimeout.GetHashCode( );

                if (Parameters != null)
                {
                    hash = hash * 92821 + Parameters.GetHashCode( );
                }

                hash = hash * 92821 + MaxPoolSize.GetHashCode( );

                return(hash);
            }
        }