public void Clone <T>(T obj) where T : class, IModel { T_MstBroker objdata = obj as T_MstBroker; this.BrokerCode = objdata.BrokerCode; this.CompanyId = objdata.CompanyId; this.BrokerName = objdata.BrokerName; this.LUT = objdata.LUT; }
public T Copy <T>() where T : class, IModel, new() { T obj = new T(); T_MstBroker objdata = obj as T_MstBroker; objdata.BrokerCode = this.BrokerCode; objdata.CompanyId = this.CompanyId; objdata.BrokerName = this.BrokerName; objdata.LUT = this.LUT; return(obj); }