private int GetIntValueHelper(LdapOption option) { if (this.connection.disposed) { throw new ObjectDisposedException(base.GetType().Name); } int outValue = 0; ErrorChecking.CheckAndSetLdapError(Wldap32.ldap_get_option_int(this.connection.ldapHandle, option, ref outValue)); return(outValue); }
private int GetIntValueHelper(LdapOption option) { if (!this.connection.disposed) { int num = 0; int num1 = Wldap32.ldap_get_option_int(this.connection.ldapHandle, option, ref num); ErrorChecking.CheckAndSetLdapError(num1); return(num); } else { throw new ObjectDisposedException(this.GetType().Name); } }