英語で読む

次の方法で共有


Expression.MakeGoto(GotoExpressionKind, LabelTarget, Expression, Type) メソッド

定義

指定した GotoExpression のジャンプを表す GotoExpressionKind を作成します。 ジャンプ時にラベルに渡す値も指定できます。

public static System.Linq.Expressions.GotoExpression MakeGoto (System.Linq.Expressions.GotoExpressionKind kind, System.Linq.Expressions.LabelTarget target, System.Linq.Expressions.Expression value, Type type);
public static System.Linq.Expressions.GotoExpression MakeGoto (System.Linq.Expressions.GotoExpressionKind kind, System.Linq.Expressions.LabelTarget target, System.Linq.Expressions.Expression? value, Type type);

パラメーター

target
LabelTarget

LabelTarget のジャンプ先の GotoExpression

value
Expression

ジャンプ時に関連付けられているラベルに渡される値。

type
Type

Type プロパティを等しく設定する Type

戻り値

GotoExpression と等しい Kindkind に設定された Target プロパティ、target に設定された Type プロパティ、およびジャンプ時にジャンプ先のラベルに渡される type を含む value

適用対象