Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
How can we change this C++ function in C#? foo(int x, int y = 10) { . . } main() { int i = 5; int k = 2; foo(5); foo(5, 2); } Thanks in advance.
I think you'd have to do this private void foo(int x, int y) { . . } private void foo(int x) { foo(x, 10); } Andy Gaskell, MCSD MCDBA
private void foo(int x, int y) { . . } private void foo(int x) { foo(x, 10); }