static private IncorrectTypeForTypeAs ( object p0, string paramName ) : |
||
p0 | object | |
paramName | string | |
Résultat |
internal static Exception IncorrectTypeForTypeAs(object p0, string paramName)
{
return new ArgumentException(Strings.IncorrectTypeForTypeAs(p0), paramName);
}
/// <summary>
//CONFORMING public static UnaryExpression TypeAs(Expression expression, Type type) { RequiresCanRead(expression, "expression"); ContractUtils.RequiresNotNull(type, "type"); if (type.IsValueType && !TypeUtils.IsNullableType(type)) { throw Error.IncorrectTypeForTypeAs(type); } return(new UnaryExpression(ExpressionType.TypeAs, expression, type, null)); }