zzz projects Expression Tree Tutorial
Getting Started Documentation Knowledge Base
  • Getting Started
  • Documentation
  • Knowledge Base

Expression Tree Tutorial - Knowledge Base (KB)

2 results for: in tag: fieldinfo

Is there a way to create a delegate to get and set values for a FieldInfo?

For properties there are ...GetGetMethod... and ...GetSetMethod... so that I can do:...Getter = (Func<S, T>)Delegate.CreateDelegate(typeof(Func<S, T>), propertyInfo.GetGetMethod()); ...and...Setter = (Action<S...
c# delegates expression-trees fieldinfo setvalue
asked by nawfal

Field getter/setter with expression tree in base class

Following the examples on ...this post... and ...its follow-up question..., I am trying to create field getters / setters using compiled expressions....The getter works just great, but I am stuck the setter, as I need the setter to assign any type of fiel...
c# expression-trees fieldinfo reflection setter
asked by neggenbe

Page 1 of 1
  • 1

Prime Library

Performance

  • Entity Framework Extensions
  • Entity Framework Classic
  • Bulk Operations
  • Dapper Plus

Expression Evaluator

  • C# Eval Expression
  • SQL Eval Function
More Projects...