This project is read-only.

check for DummyExpression

Topics: Metadata Model
May 16, 2010 at 11:02 PM
Edited May 16, 2010 at 11:03 PM

How do I check for dummy expression?



methodCall.ThisArgument == null || methodCall.ThisArgument == Dummy.Expression



this will be false even if you don't set ThisArgument because you use another DummyExpression that is not even accessible from outside.


May 16, 2010 at 11:09 PM
Edited May 17, 2010 at 11:35 AM

No. It's accessible in CodeDummy.

So the correct expression is 


methodCall.ThisArgument == CodeDummy.Expression



methodCall.ThisArgument == Dummy.Expression

is valid only because it's expressed using interfaces.