ea5caba957
Former-commit-id: f3008ca867fe7e4b7ae9b9a8844c0ad5798925a9
34 lines
470 B
C#
34 lines
470 B
C#
using System;
|
|
|
|
class X
|
|
{
|
|
Action<string> a;
|
|
|
|
public static void Main ()
|
|
{
|
|
string x = null;
|
|
string y = null;
|
|
string[] z = null;
|
|
|
|
x?.Contains (y?.ToLowerInvariant ());
|
|
x?.Contains (y?.Length.ToString ());
|
|
|
|
var res = x?[y?.Length ?? 0];
|
|
|
|
var res2 = z?[x?.Length ?? 0];
|
|
|
|
x?.Foo (y?.ToLowerInvariant ());
|
|
|
|
X xx = null;
|
|
xx?.a (y?.ToLowerInvariant ());
|
|
}
|
|
}
|
|
|
|
static class E
|
|
{
|
|
public static string Foo (this string arg, string value)
|
|
{
|
|
return "";
|
|
}
|
|
}
|