Action1 [C#]람다식(Action대리자 Action대리자: Func대리자와 거의 똑같지만 반환형식이 없음 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp16 { class Program { static void Main(string[] args) { /*Action람다식*/ Action act1 = () => Console.WriteLine("Action()"); act1(); int result = 0; Action act2= (x)=> result =x* x; act2(3); Console.WriteLine(re); Action act3 = (x.. 2020. 6. 15. 이전 1 다음