H have my standard reflector class User and I want to be able to
access the instance of this class with my row result as a dictionary
because sometimes to pass variables to template you need to have it in
dictionary format so I basically want my whole User object instance to
be like a dictionary and when I print it out i want it to look like a
dictionary, but I also want to be able to access it's properties like
a normal object as well. The ideal solution would be to be able to
call dict(object) and get a dictionary. I've already looked at the
documentation and tried several things and everytime I got a blank
dictionary ({}) but I could still access my object properties like
normal. I'm not sure what I'm doing wrong.