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

18 lines
203 B
C#
Raw Permalink Normal View History

class X
{
public object MyChildObject;
}
interface ISomeInterface
{
}
class MainClass
{
public static void Main ()
{
X myObject = null;
var x = (myObject?.MyChildObject is ISomeInterface);
}
}