Ejemplo n.º 1
0
        public void SetUp()
        {
            _bean     = SupportBeanComplexProps.MakeDefaultBean();
            _theEvent = SupportEventBeanFactory.CreateObject(_bean);
            FastClass  fastClass = FastClass.Create(typeof(SupportBeanComplexProps));
            FastMethod method    = fastClass.GetMethod("GetIndexed", new Type[] { typeof(int) });

            _getter = new KeyedFastPropertyGetter(method, 1, SupportEventAdapterService.Service);
        }
Ejemplo n.º 2
0
 public override ICodegenExpression CodegenUnderlyingGet(ICodegenExpression underlyingExpression, ICodegenContext context)
 {
     return LocalMethod(KeyedFastPropertyGetter.GetBeanPropInternalCodegen(
         context, TargetType, _method, _key), underlyingExpression);
 }