Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gtest-anon-53.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0bf6683f3bf2728d77a403b6ec891a4e9a8c5797 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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);
					}
				);
			}
		}

		static void Main (string[] args)
		{
		}
	}
}