using System; using System.Collections.Generic; namespace TestComp { class Program { internal class MyClass { public delegate void MyDelegate (out List intToAdd); private void MyTemplate (MyDelegate myData) { } public void UseATemplate () { MyTemplate ( delegate (out List intToAdd) { intToAdd = new List (); intToAdd.Add (0); } ); } } public static void Main (string[] args) { } } }