本文整理匯總了C#中System.Linq.Expressions.Expression.ThrowIfNullArgument方法的典型用法代碼示例。如果您正苦於以下問題:C# Expression.ThrowIfNullArgument方法的具體用法?C# Expression.ThrowIfNullArgument怎麽用?C# Expression.ThrowIfNullArgument使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類System.Linq.Expressions.Expression
的用法示例。
在下文中一共展示了Expression.ThrowIfNullArgument方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: Order
internal Order(Expression expr, OrderType order)
{
expr.ThrowIfNullArgument(nameof(expr));
_expr = expr;
_order = order;
}
示例2: Translate
public virtual string Translate(Expression expression, IObjectMapInfo map)
{
expression.ThrowIfNullArgument(nameof(expression));
map.ThrowIfNullArgument(nameof(map));
_map = map;
this._str = new StringBuilder();
this.Visit(expression);
if (this._str.BracketedBy(StringPair.Parenthesis))
this._str.UnBracketing(StringPair.Parenthesis);
return this._str.ToString();
}
示例3: JoinView
protected JoinView(View left, JoinType joinType, View right, Expression joinKey)
{
left.ThrowIfNullArgument(nameof(left));
right.ThrowIfNullArgument(nameof(right));
joinType.ThrowIfEnumOutOfRange();
joinKey.ThrowIfNullArgument(nameof(joinKey));
_left = left;
_right = right;
_joinType = joinType;
_joinKey = joinKey;
this._viewType = ViewType.Join;
}
示例4: SingleExpressionCriteria
internal SingleExpressionCriteria(Expression expr)
{
expr.ThrowIfNullArgument(nameof(expr));
_expr = expr;
}