Class CatchBlockSlim
Lightweight representation of a catch statement in a try block.
Inheritance
System.Object
    CatchBlockSlim
  Namespace: System.Linq.Expressions
Assembly: Nuqleon.Linq.Expressions.Bonsai.dll
Syntax
public sealed class CatchBlockSlim : Object
  Properties
Body
Gets the body of the catch block.
Declaration
public ExpressionSlim Body { get; }
  Property Value
| Type | Description | 
|---|---|
| ExpressionSlim | 
Filter
Gets the body of the CatchBlockSlim's filter.
Declaration
public ExpressionSlim Filter { get; }
  Property Value
| Type | Description | 
|---|---|
| ExpressionSlim | 
Test
Gets the type of System.Exception this handler catches.
Declaration
public TypeSlim Test { get; }
  Property Value
| Type | Description | 
|---|---|
| TypeSlim | 
Variable
Gets a reference to the System.Exception object caught by this handler.
Declaration
public ParameterExpressionSlim Variable { get; }
  Property Value
| Type | Description | 
|---|---|
| ParameterExpressionSlim | 
Methods
Update(ParameterExpressionSlim, ExpressionSlim, ExpressionSlim)
Creates a new expression that is like this one, but using the supplied children. If all of the children are the same, it will return this expression.
Declaration
public CatchBlockSlim Update(ParameterExpressionSlim variable, ExpressionSlim filter, ExpressionSlim body)
  Parameters
| Type | Name | Description | 
|---|---|---|
| ParameterExpressionSlim | variable | The Variable property of the result.  | 
      
| ExpressionSlim | filter | The Filter property of the result.  | 
      
| ExpressionSlim | body | The Body property of the result.  | 
      
Returns
| Type | Description | 
|---|---|
| CatchBlockSlim | This expression if no children changed, or an expression with the updated children.  |