summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/expected/cs/10029-when.cs
blob: 4480f61843655515e97cff1154a44e6948ca2010 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
private static string GenerateHash()
{
    try
    {
        int i = 0;
    }
    catch when (DateTime.Now.DayOfWeek == DayOfWeek.Saturday)
    {
        int j = -1;
    }
    try
    {
        int i = 0;
    }
    catch (Exception e) when (DateTime.Now.DayOfWeek == DayOfWeek.Saturday)
    {
        var when = DateTime.Now;
        ulong kind = (ulong)(int)when.Kind;
        return ((kind << 62) | (ulong)when.Ticks).ToString();
    }
}