Example #1
0
 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));
     }
 }
Example #2
0
 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));
     }
 }