C# Eval() support

Posted by Adi Barda on Stack Overflow See other posts from Stack Overflow or by Adi Barda
Published on 2009-06-21T14:47:07Z Indexed on 2010/06/09 4:32 UTC
Read the original article Hit count: 318

Filed under:
|

Hi Guys,
we need to evaluate a value in an object in run time while we have a textual statement of the exact member path for example: myobject.firstMember.secondMember[3].text
we thought of parsing this textual statement using regex and then evaluate the text value by using reflection but before we do that i wonder if C# support some kind of eval ability? so we won't have to do the parsing ourself. How do microsoft do this in their immediate window or watch windows?

thanks you very much,

Adi Barda

© Stack Overflow or respective owner

Related posts about c#

Related posts about eval