Quantcast
Channel: Javascript .NET
Viewing all articles
Browse latest Browse all 137

Commented Issue: Optional Method Parameters [11497]

$
0
0
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 **

I agree with this, it should be something that is available.


Viewing all articles
Browse latest Browse all 137

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>