a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
30 lines
467 B
C#
30 lines
467 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace TestComp
|
|
{
|
|
class Program
|
|
{
|
|
internal class MyClass
|
|
{
|
|
public delegate void MyDelegate (out List<int> intToAdd);
|
|
private void MyTemplate (MyDelegate myData)
|
|
{
|
|
}
|
|
public void UseATemplate ()
|
|
{
|
|
MyTemplate (
|
|
delegate (out List<int> intToAdd) {
|
|
intToAdd = new List<int> ();
|
|
intToAdd.Add (0);
|
|
}
|
|
);
|
|
}
|
|
}
|
|
|
|
public static void Main (string[] args)
|
|
{
|
|
}
|
|
}
|
|
}
|