summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/input/cs/delegate.cs
blob: 3a4b103c2880d21c016c4b4bab0832460f3d0d9f (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);
});