john.hui
02-02-2007, 11:20 PM
Hi,
I found a problem with types in Expressions.
obj = Spring.Expressions.ExpressionEvaluator.GetValue(No thing, "T(Object)")
returns the equivalent of
obj = GetType(Object)
However,
obj = Spring.Expressions.ExpressionEvaluator.GetValue(No thing, "T(Object).FullName")
should return
obj = GetType(Object).FullName
It does not but instead throws an exception
InvalidPropertyException was unhandled
'FullName' node cannot be resolved for the specified root context.
The second issue has to do with arrays.
I try to execute this:
obj = Spring.Expressions.ExpressionEvaluator.GetValue(No thing, "T(Object[])")
obj = Spring.Expressions.ExpressionEvaluator.GetValue(No thing, "T(Object[,])")
which should be equivalent to
obj = GetType(Object())
obj = GetType(Object(,))
However, this raises the exception
TypeLoadException was unhandled
Could not load type from string value 'Object[]'.
Could you tell if my Expression strings were correct?
Thanks in advance.
John
I found a problem with types in Expressions.
obj = Spring.Expressions.ExpressionEvaluator.GetValue(No thing, "T(Object)")
returns the equivalent of
obj = GetType(Object)
However,
obj = Spring.Expressions.ExpressionEvaluator.GetValue(No thing, "T(Object).FullName")
should return
obj = GetType(Object).FullName
It does not but instead throws an exception
InvalidPropertyException was unhandled
'FullName' node cannot be resolved for the specified root context.
The second issue has to do with arrays.
I try to execute this:
obj = Spring.Expressions.ExpressionEvaluator.GetValue(No thing, "T(Object[])")
obj = Spring.Expressions.ExpressionEvaluator.GetValue(No thing, "T(Object[,])")
which should be equivalent to
obj = GetType(Object())
obj = GetType(Object(,))
However, this raises the exception
TypeLoadException was unhandled
Could not load type from string value 'Object[]'.
Could you tell if my Expression strings were correct?
Thanks in advance.
John