public static void GenericDelegateContainerTest() { var delegates = new DelegateContainer <int>(); delegates.Add(PrintInt); delegates.CallDelegates(55); delegates.CallDelegates(33); delegates.CallDelegates(44);
static void Main() { DelegateContainer <int> delegates = new DelegateContainer <int>(); delegates.Add(EntryPoint.PrintInt); delegates.CallDelegates(42); }