Esempio n. 1
0
 protected override void OnExecute(Engine engine)
 {
     if (!ShouldExecute(engine)) return;
     var type = engine.GetType(TypeProperty, TypePath, TypeCodeTree);
     var value = engine.Get(ValueProperty, Path, CodeTree, type);
     if (Merge)
         foreach (var item in value as IList) engine.YieldValue(TypeHelper.Convert(item, type));
     else
         engine.YieldValue(value);
 }
 protected override void OnExecute(Engine engine)
 {
     engine.YieldValue(Value.Get(engine));
 }