.net - Calling a method and throws exception saying i'm passing in too many values... but i'm not -
a bit of strange question.
i'm calling method , passing in 13 paramaters. when run code throws , exception saying:
"13 arguments passed 'lib.class::updateinformation'. 12 arguments expected method."
i thought strange went method definition (through right click menu in visual studio) , counted number of parameters expecting , counted 13.
now have either lost ability count overnight or there odd going on. ideas on whats going worng here?
additional info: there no overloads method
the types of 1 or more of values passing causing match wrong method signature. breakpoint , examine actual types of values passed, first last, , @ various method overload signatures. find match overload takes fewer parameters 1 intended call.
assuming haven't accidentally passed parameters in wrong order, coerce values intended types should force match expecting.
Comments
Post a Comment