0

I am trying to read the contents of the c# code written inside a class file by writing another c# code. For example,

public static int GetValue()
{
    int tempValue = 10;
    return tempValue * 5;
}

is the code present in my class. I can get the available classes and the methods under those classes using Reflection. But I am not able to get the expression to find the logic inside the method. Is there any way to do it?

thanks Vignesh

Vicky-Torres
  • 219
  • 2
  • 8

0 Answers0