This project is read-only.

Rendering a Dictionary


The NVelocity code does not allow me to access a Dictionary, I created a context value:

Dictionary<string, object> objectValue = new Dicitionary();

objectValue["Thing1"] = "";
objectValue["Thing2"] = "";

context["Dictionary"] = objectValue;

attempting to access this information seem to not work, I did some investigation into the code it seems in MapGetExecutor the line

IDictionary interfaces = clazz as IDictionary;

seems to allways return null no matter what I pass into the constructor, one suggestion for this is to have
bool isAssignable = typeof (IDictionary).IsAssignableFrom(clazz);

which is a little more consistent but doesn't work when I pass in a IDictionary<,>