Monday, April 11, 2011

Create a hashtable using an objects properties

A few blog posts ago I put up some code that created a custom object with properties from a hashtable, now I am wondering, how would you do the opposite?  How would one create a hashtable using an objects properties?  Here is the code from the other post.  Basically what I am trying to do is figure out a way to iterate through the properties of an object, and thought this would be one way to do it, I am sure there is another more simple way to do it. 

No comments:

Post a Comment