summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cs/when.cs
blob: 2785b894735db597118ae38db9e82d28776b2f0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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();
	}
}