5 public int Prop { get; set; }
20 public int Prop { get; set; }
25 static int prop_calls
;
33 static int TestArray ()
36 var t1
= k
?.ToString ();
40 var t2
= k
?.GetLength (0);
48 var t4
= k
?.GetLength (0).ToString () ?? "N";
52 var t5
= k
?.Length
.ToString () ?? "N";
57 var t11
= k
?.ToString ();
58 if (t11
.GetType () != typeof (string))
61 var t12
= k
?.GetLength (0);
62 if (t12
.GetType () != typeof (int))
66 if (t13
.GetType () != typeof (int))
72 static int TestReferenceType ()
83 var t3
= Prop
?.Length
;
89 var t4
= Prop
?.Split ();
98 static int TestGeneric
<T
> (T t
) where T
: class, I
100 var t1
= t
?.Method ();
112 static int TestNullable ()
115 var m
= i
?.CompareTo (3);
116 if (m
.GetType () != typeof (int))
124 if (dt
?.ToString () != null)
128 if (b
?.ToString () != "0")
142 res
= TestNullable ();
150 res
= TestReferenceType ();
155 res
= TestGeneric
<CI
> (ci
);
159 Console
.WriteLine ("ok");