Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SwitchCase.cs
Go to the documentation of this file.
5
7
8[DebuggerTypeProxy(typeof(Expression.SwitchCaseProxy))]
9public sealed class SwitchCase
10{
12
13 public Expression Body { get; }
14
20
21 public override string ToString()
22 {
24 }
25
27 {
28 if (body == Body && testValues != null && ExpressionUtils.SameElements(ref testValues, TestValues))
29 {
30 return this;
31 }
32 return Expression.SwitchCase(body, testValues);
33 }
34}
static SwitchCase SwitchCase(Expression body, params Expression[] testValues)
SwitchCase(Expression body, ReadOnlyCollection< Expression > testValues)
Definition SwitchCase.cs:15
SwitchCase Update(IEnumerable< Expression > testValues, Expression body)
Definition SwitchCase.cs:26
ReadOnlyCollection< Expression > TestValues
Definition SwitchCase.cs:11