Callback from underlying Get Set methods using Reflection

  • Thread starter Thread starter Nz tribute
  • Start date Start date
N

Nz tribute

Guest
Hi

I have hundreds of properties in the Model class.

is there a way to intercept or get a callback whenever a "get or set" is made on a particular property using reflection?
i would like to try and achieve this without changing source code of the Model class.

thanks


public class Model
{
public int one { get; set; }

}

var model = new Model();

model.one = 1;

var one = model.one;

Continue reading...
 
Back
Top