本文整理汇总了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;
}