c# 코루틴 사용법
![[C#] 코루틴 (COROUTINE) (3)](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fbh6xwL%2FbtqDVv16R7P%2FcMMVDkycnkQDkQqt5sm78K%2Fimg.png)
[C#] 코루틴 (COROUTINE) (3)
1. 코루틴 예제 using System; using System.Collections; using System.Collections.Generic; class Program { // SUBROUTINE public static int Foo() { Console.WriteLine("1"); return 10; Console.WriteLine("2"); return 20; Console.WriteLine("3"); return 30; Console.WriteLine("4"); return 40; Console.WriteLine("5"); return 50; } static void Main() { int n1 = Foo(); int n2 = Foo(); Console.WriteLine($"{n1}, {n..