Lets say I have the following class
public class Test
{
public int prop1 { get;set; }
public string prop2 { get;set; }
public Type prop3 { get;set; }
}
If I have two instances of this class, what is a fast approach to comparing the objects but at the same time allowing me to check if a property is something else assuming it did not match the other objects property. Currently I am just doing a ton of if statements but this feels like a bad way of doing things.
An example of the functionality I want; If first instance prop1 did not match prop1 of second instance I can still check if prop1 from first instance is 10 or something.
Yes this example is very crude but the actual code is HUGE so no way I can post it here.
Thanks
EDIT
I Should note, I can't edit the class Test as I do not own it.