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

test-null-operator-15.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 35f16ae6c264f75b272914b2e6c471773825e711 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
using System.Linq;
using System.Collections.Generic;

class MM
{
	public IEnumerable<int> myEnumerable { get; set; }
}

class Test
{
	public static void Main ()
	{
		MM myobject = null;
		(myobject?.myEnumerable?.Any ()).GetValueOrDefault (false);      
	}
}