[LoongArch64] Part-5:add loongarch support in some files for LoongArch64. (#21769)
[mono-project.git] / mcs / tests / test-null-operator-16.cs
blob773744ee1455a5fa78f9ed2bb33071705a0ad67f
1 using System;
3 class X
5 Action<string> a;
7 public static void Main ()
9 string x = null;
10 string y = null;
11 string[] z = null;
13 x?.Contains (y?.ToLowerInvariant ());
14 x?.Contains (y?.Length.ToString ());
16 var res = x?[y?.Length ?? 0];
18 var res2 = z?[x?.Length ?? 0];
20 x?.Foo (y?.ToLowerInvariant ());
22 X xx = null;
23 xx?.a (y?.ToLowerInvariant ());
27 static class E
29 public static string Foo (this string arg, string value)
31 return "";