System.Linq.Expressions.Error.CannotCompileConstant C# (CSharp) Метод

CannotCompileConstant() статический приватный Метод

InvalidOperationException with message like "CompileToMethod cannot compile constant '{0}' because it is a non-trivial value, such as a live object. Instead, create an expression tree that can construct this value."
static private CannotCompileConstant ( object p0 ) : Exception
p0 object
Результат System.Exception
        internal static Exception CannotCompileConstant(object p0)
        {
            return new InvalidOperationException(Strings.CannotCompileConstant(p0));
        }
        /// <summary>
Error