protected override Expression VisitUnary(UnaryExpression node) { _rethrowFound = (node.NodeType == ExpressionType.Throw) && (node.Operand == _catchHandler.Variable); return(base.VisitUnary(node)); }
private static string TranslateMethodConversion(UnaryExpression cast, TranslationContext context) { return(MethodCallExpressionTranslator.GetMethodCall( cast.Method.DeclaringType.GetFriendlyName(), new BclMethodInfoWrapper(cast.Method), new[] { cast.Operand }, cast, context)); }