Skale
asked on
Comparing two object's properties with each other in vb.net
Hello,
I have a third part COM interface to get some information. In here there's special classes for that objects which i bring from COM interface.
These classes have some properties and these properties are also in type of different classes. I'd like to list two object differences but don't know how to do that programmatically because this is only one class type there's also more than 30 classes with different type of property classes.
Is there anyway to do that? I'd like to recursively check properties and if its output class has properties i'd like to get them also.
Any help really really helpful, i'm needing guidance of experts.
Regards.
I have a third part COM interface to get some information. In here there's special classes for that objects which i bring from COM interface.
These classes have some properties and these properties are also in type of different classes. I'd like to list two object differences but don't know how to do that programmatically because this is only one class type there's also more than 30 classes with different type of property classes.
Is there anyway to do that? I'd like to recursively check properties and if its output class has properties i'd like to get them also.
Any help really really helpful, i'm needing guidance of experts.
Regards.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
For comparing to objects of different classes, you need to map the properties for comparing them. Here using a two proxy objects can do the mapping to a common interface for comparing your values.
ASKER
I just heard proxy pattern and really dont understand when and where it can be usable ?
But seems it can be useful.