public Object Get(EventBean eventBean)
        {
            GenericRecord record = (GenericRecord)eventBean.Underlying;
            GenericRecord inner  = (GenericRecord)record.Get(_top);

            return(AvroEventBeanGetterDynamicPoly.GetAvroFieldValuePoly(inner, _getters));
        }
 public CodegenExpression UnderlyingGetCodegen(
     CodegenExpression underlyingExpression,
     CodegenMethodScope codegenMethodScope,
     CodegenClassScope codegenClassScope)
 {
     return CodegenExpressionBuilder.LocalMethod(
         AvroEventBeanGetterDynamicPoly.GetAvroFieldValuePolyCodegen(
             codegenMethodScope,
             codegenClassScope,
             _getters),
         CodegenExpressionBuilder.Cast(
             typeof(GenericRecord),
             CodegenExpressionBuilder.StaticMethod(
                 typeof(GenericRecordExtensions),
                 "Get",
                 underlyingExpression,
                 CodegenExpressionBuilder.Constant(_top.Name))));
 }
 public object GetFragment(EventBean eventBean)
 {
     var record = (GenericRecord) eventBean.Underlying;
     var inner = (GenericRecord) record.Get(_top);
     return AvroEventBeanGetterDynamicPoly.GetAvroFieldFragmentPoly(inner, _getters);
 }
 public bool IsExistsProperty(EventBean eventBean)
 {
     var record = (GenericRecord) eventBean.Underlying;
     var inner = (GenericRecord) record.Get(_top);
     return AvroEventBeanGetterDynamicPoly.GetAvroFieldValuePolyExists(inner, _getters);
 }