Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
TryExpression.cs
Go to the documentation of this file.
1
using
System.Collections.Generic
;
2
using
System.Collections.ObjectModel
;
3
using
System.Diagnostics
;
4
using
System.Dynamic.Utils
;
5
6
namespace
System.Linq.Expressions
;
7
8
[
DebuggerTypeProxy
(
typeof
(TryExpressionProxy))]
9
public
sealed
class
TryExpression
:
Expression
10
{
11
public
sealed
override
Type
Type
{
get
; }
12
13
public
sealed
override
ExpressionType
NodeType
=>
ExpressionType
.Try;
14
15
public
Expression
Body
{
get
; }
16
17
public
ReadOnlyCollection<CatchBlock>
Handlers
{
get
; }
18
19
public
Expression
?
Finally
{
get
; }
20
21
public
Expression
?
Fault
{
get
; }
22
23
internal
TryExpression
(
Type
type
,
Expression
body,
Expression
@finally
,
Expression
fault
,
ReadOnlyCollection<CatchBlock>
handlers
)
24
{
25
Type
=
type
;
26
Body
= body;
27
Handlers
=
handlers
;
28
Finally
=
@finally
;
29
Fault
=
fault
;
30
}
31
32
protected
internal
override
Expression
Accept
(
ExpressionVisitor
visitor
)
33
{
34
return
visitor
.VisitTry(
this
);
35
}
36
37
public
TryExpression
Update
(
Expression
body,
IEnumerable<CatchBlock>
?
handlers
,
Expression
?
@finally
,
Expression
?
fault
)
38
{
39
if
(((body ==
Body
) & (
@finally
==
Finally
) & (
fault
==
Fault
)) &&
ExpressionUtils
.SameElements(
ref
handlers
,
Handlers
))
40
{
41
return
this
;
42
}
43
return
Expression
.
MakeTry
(
Type
, body,
@finally
,
fault
,
handlers
);
44
}
45
}
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
System.Dynamic.Utils.ExpressionUtils
Definition
ExpressionUtils.cs:11
System.Linq.Expressions.ExpressionVisitor
Definition
ExpressionVisitor.cs:9
System.Linq.Expressions.Expression.MakeTry
static TryExpression MakeTry(Type? type, Expression body, Expression? @finally, Expression? fault, IEnumerable< CatchBlock >? handlers)
Definition
Expression.cs:4897
System.Linq.Expressions.Expression
Definition
Expression.cs:5484
System.Linq.Expressions.TryExpression.Handlers
ReadOnlyCollection< CatchBlock > Handlers
Definition
TryExpression.cs:17
System.Linq.Expressions.TryExpression.NodeType
override ExpressionType NodeType
Definition
TryExpression.cs:13
System.Linq.Expressions.TryExpression.TryExpression
TryExpression(Type type, Expression body, Expression @finally, Expression fault, ReadOnlyCollection< CatchBlock > handlers)
Definition
TryExpression.cs:23
System.Linq.Expressions.TryExpression.Body
Expression Body
Definition
TryExpression.cs:15
System.Linq.Expressions.TryExpression.Fault
Expression? Fault
Definition
TryExpression.cs:21
System.Linq.Expressions.TryExpression.Accept
override Expression Accept(ExpressionVisitor visitor)
Definition
TryExpression.cs:32
System.Linq.Expressions.TryExpression.Finally
Expression? Finally
Definition
TryExpression.cs:19
System.Linq.Expressions.TryExpression.Update
TryExpression Update(Expression body, IEnumerable< CatchBlock >? handlers, Expression? @finally, Expression? fault)
Definition
TryExpression.cs:37
System.Linq.Expressions.TryExpression
Definition
TryExpression.cs:10
System.Type
Definition
Type.cs:14
System.Collections.Generic
Definition
IHashKeyCollection.cs:1
System.Collections.ObjectModel
Definition
EventArgsCache.cs:4
System.Diagnostics
Definition
AggregationManager.cs:6
System.Dynamic.Utils
Definition
CacheDict.cs:4
System.Linq.Expressions.ExpressionType
ExpressionType
Definition
ExpressionType.cs:4
System.Linq.Expressions
Definition
AnalyzedTree.cs:3
System.ExceptionArgument.type
@ type
source
System.Linq.Expressions
System.Linq.Expressions
TryExpression.cs
Generated by
1.10.0