This project is read-only.
1

Closed

exception on using nested user data type

description

if the user data type is a nested type:
namespace MyNamespace
{
public class MyParentClass
{
public class MyClass
{
  public int x = 1;
  public int AddOne() { return x + 1; }
}
}
}
could not find a correct setup and using not to get Simpro.Expr.ExprException: The type of obj. is not defined.
Closed Sep 12, 2011 at 7:40 PM by simpro
fixed in v1.0

comments

simpro wrote Sep 12, 2011 at 7:39 PM

This should be fixed in v1.0.

ExprParser.Using.Add("MyNamespace");
ExprParser ep = new ExprParser();
int res = (int)ep.Run( ep.Parse("(MyParentClass.MyClass myclass)=>myclass.AddOne()"), new MyParentClass.MyClass() );

wrote Sep 12, 2011 at 7:40 PM

wrote Feb 13, 2013 at 11:24 PM

wrote May 16, 2013 at 5:28 AM