コード例 #1
0
ファイル: Trade.cs プロジェクト: wffett/IndexApp
 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));
     }
 }
コード例 #2
0
ファイル: Trade.cs プロジェクト: ZHPHAN/HaiFengAPI
 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));
     }
 }