람다식 연습 3 (Action) - 빵만들기
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HelloWorld { class App { //생성자 public App() { string[] ingredient = { "물", "우유", "설탕", "소금", "강력분", "이스트", "버터" }; this.Cook(ingredient, (bread) => { Console.WriteLine(bread); //Bread (인스턴스) }); /* * Cook메서드가 출력하는거... * 물, 우유, 설탕, 소금, 강력분, 이스트, 버터 * 넣고 반죽을 합니다. * 오븐에 넣고 기..