Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ this[int index]

override QilNode System.Xml.Xsl.Qil.QilTernary.this[int index]
getset

Definition at line 13 of file QilTernary.cs.

14 {
15 get
16 {
17 return index switch
18 {
19 0 => _left,
20 1 => _center,
21 2 => _right,
22 _ => throw new IndexOutOfRangeException(),
23 };
24 }
25 set
26 {
27 switch (index)
28 {
29 case 0:
30 _left = value;
31 break;
32 case 1:
33 _center = value;
34 break;
35 case 2:
36 _right = value;
37 break;
38 default:
39 throw new IndexOutOfRangeException();
40 }
41 }
42 }