About return code

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello MVPs:

i am coding a console application in c#, i want to return different
return cod(maybe process return code) according to different exception
condition i met.
how do i accompilish it??? i need some suggestions.

Thanks in advance
 
class ConsoleApp
{
public static int Main(string[] args)
{
int return_code = DoSomeComputation(args);
return return_code;
}
}

how easy is that?
 
thanks for your answers.
but something more, is this return code the process's exitcode?

thanks in advance.
Lloyd Dupont said:
class ConsoleApp
{
public static int Main(string[] args)
{
int return_code = DoSomeComputation(args);
return return_code;
}
}

how easy is that?

gladiator said:
Hello MVPs:

i am coding a console application in c#, i want to return different
return cod(maybe process return code) according to different exception
condition i met.
how do i accompilish it??? i need some suggestions.

Thanks in advance
 
Oh sorry what was the question again? the nearest pizza shop?
here there is one:
http://maps.google.com/maps?ll=40.689555,-74.045534&spn=0.005843,0.006207&t=k&hl=en

gladiator said:
thanks for your answers.
but something more, is this return code the process's exitcode?

thanks in advance.
Lloyd Dupont said:
class ConsoleApp
{
public static int Main(string[] args)
{
int return_code = DoSomeComputation(args);
return return_code;
}
}

how easy is that?

gladiator said:
Hello MVPs:

i am coding a console application in c#, i want to return
different
return cod(maybe process return code) according to different exception
condition i met.
how do i accompilish it??? i need some suggestions.

Thanks in advance
 
thanks for your advice:

i found the nearest pie to me. the reason is that i always use void type of
main method.

thanks.




Lloyd Dupont said:
Oh sorry what was the question again? the nearest pizza shop?
here there is one:
http://maps.google.com/maps?ll=40.689555,-74.045534&spn=0.005843,0.006207&t=k&hl=en

gladiator said:
thanks for your answers.
but something more, is this return code the process's exitcode?

thanks in advance.
Lloyd Dupont said:
class ConsoleApp
{
public static int Main(string[] args)
{
int return_code = DoSomeComputation(args);
return return_code;
}
}

how easy is that?

Hello MVPs:

i am coding a console application in c#, i want to return
different
return cod(maybe process return code) according to different exception
condition i met.
how do i accompilish it??? i need some suggestions.

Thanks in advance
 
Back
Top