void _import_OnRspQryTradingAccount(TradingAccount pAccount) { foreach (var info in pAccount.GetType().GetFields()) { TradingAccount.GetType().GetField(info.Name).SetValue(TradingAccount, Convert.ChangeType(info.GetValue(pAccount), TradingAccount.GetType().GetField(info.Name).FieldType)); } }