Zetbox.API.ExpressionFilter.CheckLegalExpression.VisitMethodCall C# (CSharp) Method

VisitMethodCall() protected method

protected VisitMethodCall ( MethodCallExpression m ) : void
m System.Linq.Expressions.MethodCallExpression
return void
            protected override void VisitMethodCall(MethodCallExpression m)
            {
                base.VisitMethodCall(m);

                // Rethink this
                // Security should be implemented in querytranslator corretly
                // That means, that Aggregations & Co are allowed on the client side
                // But that's an topic to discuss
                //if (m.Method.DeclaringType != typeof(string))
                //{
                //    IsLegal = false;
                //    IllegalExpression.Add(new IllegalExpression() { MethodCall = m.Method.DeclaringType.FullName + "." + m.Method.Name });
                //}
            }
ExpressionFilter.CheckLegalExpression