G
Guest
static void Main(string[] args) { DoSomething(); }
static void DoSomething() {
for (int i=0; i<=10; i++) { CallAsyncMethod(); }
}
my problem is when i run the app console exists without really completing
DoSomething()
if i add 'Console.ReadLine() to Main() then console waits until
DoSomething() is complete
how do i make the app exist only after DoSomething() is complete?
static void DoSomething() {
for (int i=0; i<=10; i++) { CallAsyncMethod(); }
}
my problem is when i run the app console exists without really completing
DoSomething()
if i add 'Console.ReadLine() to Main() then console waits until
DoSomething() is complete
how do i make the app exist only after DoSomething() is complete?