대리자

    [C#] Func(T, TResult) 대리자 사용법

    delegate 예제와 Func(T, TResult) 대리자 예제등 몇 가지를 살펴보면.. delegate예제 using System; delegate string ConvertMethod(string inString); public class DelegateExample { public static void Main() { // Instantiate delegate to reference UppercaseString method ConvertMethod convertMeth = UppercaseString; string name = "Dakota"; // Use delegate instance to call UppercaseString method Console.WriteLine(convertMeth(..