我正在从调试器中评估用户表达式。我想在方法上下文中编译表达式,然后用调试器注入IL代码。 是否有可能编译表达式,该表达式包含从外部程序集到包含Roslyn的IL代码的非公共类/类字段? 我已经有'MyNamespace.dll'与公共类'Test'和私有方法'PrivateMethod',我想从Roslyn编译调用它。 我想用下面的代码来做到这一点: public class TestCompil
public class MainClass {
public static void main(String[] args) {
anotherTest();
test();
}
public static void test() {
System.out.println("Printed from the test metho
其关于编译这种方法,其中T是通用的。有没有办法用javac编译器(Java 1.8)编译而不会出现任何错误? public class MyGenericClass<T>{
public void someGenericAction(T value){
int key = (int) value;
}
}
来自德国的问候!