Closed
Description
Say I have an object, OBJ, which has a property Property.
I also setup an EvaluateVariable() delegate.
In my variable dictionary, I have the entry ("OBJ", OBJ)
I ask the engine to evaluate:
OBJ.Property
In regards to OBJ, the EvaluateVariable() delegate is only called if the OBJ entry is not included in the dictionary.
However, in regards to Property, EvaluateVariable() is called every time.
- If EvaluateVariable() simply returns on this call (and doesn't set e.Value), the engine will use the value returned by OBJ.Property
- If EvaluateVariable() does set e.Value, the engine will use that value
Is this the intended behavior? It seems inconsistent. I expected EvaluateVariable() would only get called for Property, if the Property was not part of OBJ proper.
VS2019, NuGet version 1.3.7