public override GetMemberDelegate <T> CreateGetter <T>(FieldInfo fieldInfo)
 {
     return
         (SupportsEmit ? FieldInvoker.GetEmit <T>(fieldInfo) :
          SupportsExpression
             ? FieldInvoker.GetExpression <T>(fieldInfo)
             : base.CreateGetter <T>(fieldInfo));
 }
Example #2
0
        public override GetMemberDelegate CreateGetter(FieldInfo fieldInfo)
        {
            return
                (#if NET472
                 this.SupportsEmit ? FieldInvoker.GetEmit(fieldInfo) :
#endif
                 this.SupportsExpression
                    ? FieldInvoker.GetExpression(fieldInfo)
                    : base.CreateGetter(fieldInfo));
        }
Example #3
0
        public override GetMemberDelegate <T> CreateGetter <T>(FieldInfo fieldInfo)
        {
            return
                (#if NETSTANDARD2_0
                 SupportsEmit ? FieldInvoker.GetEmit <T>(fieldInfo) :
#endif
                 SupportsExpression
                    ? FieldInvoker.GetExpression <T>(fieldInfo)
                    : base.CreateGetter <T>(fieldInfo));
        }