Object to Dictionary conversion in C#

This class map any properties of an object into a dictionary. I have added a function for handling null property value (remove NullReferencenceException from our code!).