How do I get a list of all the properties of a class?
You can use reflection.
Type typeOfMyObject = myObject.GetType(); PropertyInfo[] properties =typeOfMyObject.GetProperties();