Hello,
I'm writing a dll in which i need to create function with different arguments.
When using function overload method i try to call these functions from FoxPro and it shows that my dll has three functions example: CMDLINE, CMDLINE_2,CMDLI NE_3, but in c# i declared them with the same name "CMDLINE".
I need such functions: CMDLINE(); CMDLINE(int blah); CMDLINE(int blah,string blah2);
Because now its CMDLINE(int blah, string blah2) and if i don't write all the parameters i get an exception which says me tha "The parameter is incorrect";
I need help for function overloading in class library or this exception catching or making things to work with optional parameters.
I'm writing a dll in which i need to create function with different arguments.
When using function overload method i try to call these functions from FoxPro and it shows that my dll has three functions example: CMDLINE, CMDLINE_2,CMDLI NE_3, but in c# i declared them with the same name "CMDLINE".
I need such functions: CMDLINE(); CMDLINE(int blah); CMDLINE(int blah,string blah2);
Because now its CMDLINE(int blah, string blah2) and if i don't write all the parameters i get an exception which says me tha "The parameter is incorrect";
I need help for function overloading in class library or this exception catching or making things to work with optional parameters.
Comment