Uredi

Deli z drugimi prek


Expression.Variable Method

Definition

Creates a ParameterExpression node that can be used to identify a parameter or a variable in an expression tree.

Overloads

Variable(Type, String)

Creates a ParameterExpression node that can be used to identify a parameter or a variable in an expression tree.

Variable(Type)

Creates a ParameterExpression node that can be used to identify a parameter or a variable in an expression tree.

Variable(Type, String)

Source:
ParameterExpression.cs
Source:
ParameterExpression.cs
Source:
ParameterExpression.cs

Creates a ParameterExpression node that can be used to identify a parameter or a variable in an expression tree.

public:
 static System::Linq::Expressions::ParameterExpression ^ Variable(Type ^ type, System::String ^ name);
public static System.Linq.Expressions.ParameterExpression Variable (Type type, string name);
public static System.Linq.Expressions.ParameterExpression Variable (Type type, string? name);
static member Variable : Type * string -> System.Linq.Expressions.ParameterExpression
Public Shared Function Variable (type As Type, name As String) As ParameterExpression

Parameters

type
Type

The type of the parameter or variable.

name
String

The name of the parameter or variable. This name is used for debugging or printing purpose only.

Returns

A ParameterExpression node with the specified name and type.

Applies to

Variable(Type)

Source:
ParameterExpression.cs
Source:
ParameterExpression.cs
Source:
ParameterExpression.cs

Creates a ParameterExpression node that can be used to identify a parameter or a variable in an expression tree.

public:
 static System::Linq::Expressions::ParameterExpression ^ Variable(Type ^ type);
public static System.Linq.Expressions.ParameterExpression Variable (Type type);
static member Variable : Type -> System.Linq.Expressions.ParameterExpression
Public Shared Function Variable (type As Type) As ParameterExpression

Parameters

type
Type

The type of the parameter or variable.

Returns

A ParameterExpression node with the specified name and type.

Applies to