Interface IReferenceObjectComparer
Defines an comparer that takes two instances and determines if they are based on the same object.
Namespace: ImageVault.Common.Lib
Assembly: ImageVault.Common.dll
Syntax
public interface IReferenceObjectComparer
Remarks
This is useful for classes that wraps other classes and we want to compare the original instance with the wrapped instance.
Methods
AreSameReferenceObject(Object, Object)
Compares two objects and compares if they are based on the same reference object.
Declaration
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. |