This project has moved. For the latest updates, please go here.
1
Vote

Can't Resolve string.Empty

description

var registry = new TypeRegistry();
registry.RegisterDefaultTypes();

var expression = new CompiledExpression("string.Empty"){ TypeRegistry = registry };
expression.ExpressionType = CompiledExpressionType.Expression;
expression.Eval();

I get this error
Cannot resolve member "Empty" on type "Type" at line 1 char 7

And other static field will be get same error like, float.MinValue, etc.

comments