1

I have no problems invoking methods with decimal parameters, as follows:

//public void MyMethod(decimal d){

myWrapper@MyMethod[1.23];

However, I need to change the signature of MyMethod as follows:

//public void MyMethod(decimal? d){
// this call works
myWrapper@MyMethod[Null];

Passing a Null to the modified MyMethod works, but passing a decimal fails:

myWrapper@MyMethod[1.2];
NET::methodargs: Improper arguments supplied for method named MyMethod

What am I missing?

A-K
  • 16,804
  • 8
  • 54
  • 74

0 Answers0