Class ReferenceObjectComparer
A object comparer that compares two objects and sees if they are based on the same reference.
Inheritance
System.Object
ReferenceObjectComparer
Implements
Namespace: ImageVault.Common.Lib
Assembly: ImageVault.Common.dll
Syntax
public class ReferenceObjectComparer : List<IReferenceObjectComparer>, IReferenceObjectComparer
Remarks
This is useful for classes that wraps other classes and we want to compare the original instance with the wrapped instance. 2010-09-28 dan: Created
Constructors
ReferenceObjectComparer()
Declaration
public ReferenceObjectComparer()
Methods
AreSameReferenceObject(Object, Object)
Compares two objects and compares if they are based on the same reference object.
Declaration
public bool AreSameReferenceObject(object a, object b)
Parameters
Type | Name | Description |
---|---|---|
System.Object | a | The first object to compare |
System.Object | b | The second object to compare |
Returns
Type | Description |
---|---|
System.Boolean | True if they originates from the same instance, false otherwize. |