linux-packaging-mono/mcs/tests/test-null-operator-15.cs

17 lines
259 B
C#
Raw Permalink Normal View History

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);
}
}