Hi,
Does anybody know if I can use something like recurse to get the whole list
of the public members of the class and their types/values?
For example, I created the object with default values, then I need to get
another object, created somewhere else, for example by serialization method,
then to assign all values from this external object to existing ones in my
object. I can do that using the members list, one by one. I suspect that
there is another one approach, more effective, like:
CMyClass MyObject = new CMyClass();
CMyClass DeserializedObject = Deserialize();
foreach (object obj in MyObject){
MyObject.obj = DeserializedObject.obj;
}//foreach
Is it possible at all?
Thanks,
Dmitri