상속: SellSideStrategy
        private void SetSubStrategyParameters(SellSideInstrumentStrategy strategy)
        {
            var fields = strategy.GetType().GetFields(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);

            foreach (var f in fields.Where(f => f.GetCustomAttributes(typeof(ParameterAttribute), true).Any()))
            {
                f.SetValue(strategy, f.GetValue(this));
            }
        }
예제 #2
0
 private void SetSubStrategyParameters(SellSideInstrumentStrategy strategy)
 {
     var fields = strategy.GetType().GetFields(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);
     foreach (var f in fields.Where(f => f.GetCustomAttributes(typeof(ParameterAttribute), true).Any()))
         f.SetValue(strategy, f.GetValue(this));
 }