G
Guest
hello,
I'm new to C# so forgive me for a simple/silly question. In C/C++ you can return a different code number if an error has occurred, for example:
int main() {
....
if (someError)
return 3; // 3 may mean a specific error
....
return 0; // 0 == successful
}
how can this be done in C#? Whatever I do in the C# code, it seems that the system and applications calling the C# application get code 0.
thanks
I'm new to C# so forgive me for a simple/silly question. In C/C++ you can return a different code number if an error has occurred, for example:
int main() {
....
if (someError)
return 3; // 3 may mean a specific error
....
return 0; // 0 == successful
}
how can this be done in C#? Whatever I do in the C# code, it seems that the system and applications calling the C# application get code 0.
thanks