2 using System
.Collections
.Generic
;
18 static void NullCheckTest ()
23 res
= dyn
?.ToString ();
24 res
= dyn
?.GetHashCode ();
25 res
= dyn
?.DD
.Length
?.GetHashCode ();
30 res
= dyn
?.Prop
?.Prop2
;
36 dynamic dyn
= new X ();
39 res
= dyn
.Prop
?.Length
;
40 res
= dyn
.A
.B
?.C
.D
?.E
.F
;
43 static dynamic Test_2 (IEnumerable
<dynamic> collection
)
45 return collection
?.FirstOrDefault ().Length
;
48 public static void Main ()