2 instantiations of TryExpression
System.Linq.Expressions (2)
System\Linq\Expressions\Compiler\StackSpiller.cs (1)
1019
expr = new
TryExpression
(node.Type, body.Node, @finally.Node, fault.Node, handlers!);
System\Linq\Expressions\TryExpression.cs (1)
178
return new
TryExpression
(type ?? body.Type, body, @finally, fault, @catch);
31 references to TryExpression
netstandard (1)
netstandard.cs (1)
1026
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Linq.Expressions.
TryExpression
))]
System.Core (1)
System.Core.cs (1)
164
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Linq.Expressions.
TryExpression
))]
System.Linq.Expressions (29)
System\Linq\Expressions\Compiler\LambdaCompiler.Statements.cs (2)
811
var
node = (
TryExpression
)expr;
System\Linq\Expressions\Compiler\StackSpiller.cs (2)
953
var
node = (
TryExpression
)expr;
System\Linq\Expressions\DebugViewWriter.cs (1)
1086
protected internal override Expression VisitTry(
TryExpression
node)
System\Linq\Expressions\Expression.DebuggerProxy.cs (2)
437
private readonly
TryExpression
_node;
439
public TryExpressionProxy(
TryExpression
node)
System\Linq\Expressions\ExpressionStringBuilder.cs (1)
743
protected internal override Expression VisitTry(
TryExpression
node)
System\Linq\Expressions\ExpressionVisitor.cs (2)
506
/// Visits the children of the <see cref="
TryExpression
"/>.
511
protected internal virtual Expression VisitTry(
TryExpression
node)
System\Linq\Expressions\Interpreter\LightCompiler.cs (3)
1966
var
node = (
TryExpression
)expr;
2098
private void CompileTryFaultExpression(
TryExpression
expr)
System\Linq\Expressions\TryExpression.cs (16)
83
public
TryExpression
Update(Expression body, IEnumerable<CatchBlock>? handlers, Expression? @finally, Expression? fault)
100
/// Creates a <see cref="
TryExpression
"/> representing a try block with a fault block and no catch statements.
104
/// <returns>The created <see cref="
TryExpression
"/>.</returns>
105
public static
TryExpression
TryFault(Expression body, Expression? fault)
111
/// Creates a <see cref="
TryExpression
"/> representing a try block with a finally block and no catch statements.
115
/// <returns>The created <see cref="
TryExpression
"/>.</returns>
116
public static
TryExpression
TryFinally(Expression body, Expression? @finally)
122
/// Creates a <see cref="
TryExpression
"/> representing a try block with any number of catch statements and neither a fault nor finally block.
126
/// <returns>The created <see cref="
TryExpression
"/>.</returns>
127
public static
TryExpression
TryCatch(Expression body, params CatchBlock[]? handlers)
133
/// Creates a <see cref="
TryExpression
"/> representing a try block with any number of catch statements and a finally block.
138
/// <returns>The created <see cref="
TryExpression
"/>.</returns>
139
public static
TryExpression
TryCatchFinally(Expression body, Expression? @finally, params CatchBlock[]? handlers)
145
/// Creates a <see cref="
TryExpression
"/> representing a try block with the specified elements.
152
/// <returns>The created <see cref="
TryExpression
"/>.</returns>
153
public static
TryExpression
MakeTry(Type? type, Expression body, Expression? @finally, Expression? fault, IEnumerable<CatchBlock>? handlers)