2 instantiations of TryExpression
System.Linq.Expressions (2)
System\Linq\Expressions\Compiler\StackSpiller.cs (1)
1019expr = new TryExpression(node.Type, body.Node, @finally.Node, fault.Node, handlers!);
System\Linq\Expressions\TryExpression.cs (1)
178return 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)
811var node = (TryExpression)expr;
System\Linq\Expressions\Compiler\StackSpiller.cs (2)
953var node = (TryExpression)expr;
System\Linq\Expressions\DebugViewWriter.cs (1)
1086protected internal override Expression VisitTry(TryExpression node)
System\Linq\Expressions\Expression.DebuggerProxy.cs (2)
437private readonly TryExpression _node; 439public TryExpressionProxy(TryExpression node)
System\Linq\Expressions\ExpressionStringBuilder.cs (1)
743protected internal override Expression VisitTry(TryExpression node)
System\Linq\Expressions\ExpressionVisitor.cs (2)
506/// Visits the children of the <see cref="TryExpression"/>. 511protected internal virtual Expression VisitTry(TryExpression node)
System\Linq\Expressions\Interpreter\LightCompiler.cs (3)
1966var node = (TryExpression)expr; 2098private void CompileTryFaultExpression(TryExpression expr)
System\Linq\Expressions\TryExpression.cs (16)
83public 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> 105public 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> 116public 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> 127public 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> 139public 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> 153public static TryExpression MakeTry(Type? type, Expression body, Expression? @finally, Expression? fault, IEnumerable<CatchBlock>? handlers)