C# Class Paralect.ServiceBus.Test.ObjectComparer

Originally from: http://cyotek.com/article/display/comparing-the-properties-of-two-objects-via-reflection
Datei anzeigen Open project: paralect/Paralect.ServiceBus Class Usage Examples

Public Methods

Method Description
AreObjectsEqual ( object objectA, object objectB ) : bool

Compares the properties of two objects of the same type and returns if all properties are equal.

Private Methods

Method Description
AreValuesEqual ( object valueA, object valueB ) : bool

Compares two values and returns if they are the same.

CanDirectlyCompare ( Type type ) : bool

Determines whether value instances of the specified type can be directly compared.

Method Details

AreObjectsEqual() public static method

Compares the properties of two objects of the same type and returns if all properties are equal.
public static AreObjectsEqual ( object objectA, object objectB ) : bool
objectA object The first object to compare.
objectB object The second object to compre.
return bool