summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/cs/10161-delegate.cs
blob: 152fba2bc160f31bda66e7698c410e247342a358 (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
void foo()
{
	obj.cb += () => { };

	funcwithverylongname(() =>
		{
			func();
		});
}

Func(
	"stuff",
	foo =>
	{
		bar();
	});

Func(
	"stuff",
	foo =>
	{
		bar();
	});

data.Sort(
	delegate(InputData lhs, InputData rhs)
	{
		return lhs.m_Name.CompareTo(rhs.m_Name);
	});