4 // Parser conditional expression tests
7 public class ConditionalParsing
11 public T (string path
, bool mode
)
12 : this (path
, mode
, (mode
== true ? 1 : 2), 1, int.MaxValue
)
16 public T (string s
, bool m
, int i
, int i2
, int i3
)
23 const int c
= true ? 1 : 2;
39 int _provider
= mp
.Length
== a
? _provider
= 4 : 5;
42 T
? Test_3
<T
> (Func
<T
, T
, T
> result
, T t
) where T
: struct
44 return new T
? (result (t
, t
));
47 void Test_4 (bool x
, bool y
)
49 int s
= x
? (y
? 2 : 4) : (y
? 5 : 7);
52 void Test_5 (bool a
, IDisposable fs
)
54 using (a
? fs
: null) {
55 Console
.WriteLine ("");
61 char[] escaped_text_chars
=
63 new char [] {'&', '<', '>', '\r', '\n'}
:
64 new char [] {'&', '<', '>'}
;
67 void Test_7 (object o
)
72 void Test_8 (DateTime
value)
74 var _endDate
= value > DateTime
.MinValue
? new DateTime
? (value) : null;
81 string a
= (b
? (c
? "#" : "#") : "");
84 public static void Main ()