1 - У меня на диске есть следующее содержимое файла (файл cs, не скомпилированный):
namespace Test
{
using System;
public class TestClass
{
public string SomeTestMethod(){
return "test here";
}
}
}
Как мне во время выполнения получить переменную метода:
public string SomeTestMethod(){
return "test here";
}
например: SourceCodeParser.GetMothod("путь к файлу","SomeTestMethod");
2 — возможно ли содержимое элемента доступа?
public string SomeMember {
get {
return "test here";
}
}
Подробнее здесь: https://stackoverflow.com/questions/203 ... at-runtime