Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
CatchBlock.cs
Go to the documentation of this file.
2
4
5[DebuggerTypeProxy(typeof(Expression.CatchBlockProxy))]
6public sealed class CatchBlock
7{
9
10 public Type Test { get; }
11
12 public Expression Body { get; }
13
14 public Expression? Filter { get; }
15
16 internal CatchBlock(Type test, ParameterExpression variable, Expression body, Expression filter)
17 {
18 Test = test;
19 Variable = variable;
20 Body = body;
21 Filter = filter;
22 }
23
24 public override string ToString()
25 {
27 }
28
30 {
31 if (variable == Variable && filter == Filter && body == Body)
32 {
33 return this;
34 }
35 return Expression.MakeCatchBlock(Test, variable, body, filter);
36 }
37}
CatchBlock(Type test, ParameterExpression variable, Expression body, Expression filter)
Definition CatchBlock.cs:16
ParameterExpression? Variable
Definition CatchBlock.cs:8
CatchBlock Update(ParameterExpression? variable, Expression? filter, Expression body)
Definition CatchBlock.cs:29
static CatchBlock MakeCatchBlock(Type type, ParameterExpression? variable, Expression body, Expression? filter)