Class UnboundParameterException
Exception raised when an expression contains unbound parameters which prevent the expression to be processed.
Inheritance
Namespace: System.Linq.CompilerServices
Assembly: Nuqleon.Linq.CompilerServices.dll
Syntax
public sealed class UnboundParameterException : Exception
Constructors
UnboundParameterException(String, Expression, IEnumerable<ParameterExpression>)
Creates a new unbound parameter exception for the specified expression and the unbound parameters.
Declaration
public UnboundParameterException(string message, Expression expression, IEnumerable<ParameterExpression> parameters)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | Message to describe the error condition. |
System.Linq.Expressions.Expression | expression | Expression with unbound parameters. |
System.Collections.Generic.IEnumerable<System.Linq.Expressions.ParameterExpression> | parameters | Unbound parameters in the expression. |
Properties
Expression
Gets the expression which has unbound parameters.
Declaration
public Expression Expression { get; }
Property Value
Type | Description |
---|---|
System.Linq.Expressions.Expression |
Parameters
Gets the unbound parameters in the expression.
Declaration
public ReadOnlyCollection<ParameterExpression> Parameters { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ReadOnlyCollection<System.Linq.Expressions.ParameterExpression> |
Methods
GetObjectData(SerializationInfo, StreamingContext)
Sets the System.Runtime.Serialization.SerializationInfo with information about the exception.
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown. |
System.Runtime.Serialization.StreamingContext | context | The System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination. |
ThrowIfOpen(Expression, String)
Throws an unbound parameter exception if the specified expression contains unbound parameters.
Declaration
public static void ThrowIfOpen(Expression expression, string message)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.Expression | expression | Expression to check for unbound parameters. |
System.String | message | Exception message to use for signaling unbound parameters. |