public void Copy(IPSSetting setting) { _serverAddr = setting.ServerAddr; _instructPort = setting.InstructPort; _eventPort = setting.EventPort; _isLdapEnabled = setting.IsLDAPEnabled; _ldapPort = setting.LDAPPort; _ldapAddr = setting.LDAPServerAddr; _ldapUser = setting.LDAPUser; _ldapPassword = setting.LDAPPassowrd; }
public object Clone() { var rVal = new IPSSetting(); rVal._serverAddr = _serverAddr; rVal._instructPort = _instructPort; rVal._eventPort = _eventPort; rVal._isLdapEnabled = _isLdapEnabled; rVal._ldapAddr = _ldapAddr; rVal._ldapPort = _ldapPort; rVal._ldapUser = _ldapUser; rVal._ldapPassword = _ldapPassword; return(rVal); }