It appears that optional method parameters are not supported properly on objects added to the context. Consider the code below:
...
public void log(String what, String color = null) {
}
...
Calling that method with one parameter via script throws an argument mismatch exception. Optional parameters on methods should be recognized. It's been part of c# since 4.0.
Comments: ** Comment from web user: jesseest **
...
public void log(String what, String color = null) {
}
...
Calling that method with one parameter via script throws an argument mismatch exception. Optional parameters on methods should be recognized. It's been part of c# since 4.0.
Comments: ** Comment from web user: jesseest **
I agree with this, it should be something that is available.