// For a generic object value, just compare their properties. private static bool CompareGenericObject(object obj1, object obj2) { //Compare properties if (!TreeComparer.CompareObjectProperties(obj1, obj2)) { TreeComparer.SendCompareMessage("Not all the properties are the same for object '" + obj1.GetType().ToString() + "'."); TreeComparer.Break(); return(false); } return(true); }