Search Results for

    Show / Hide Table of Contents

    Class ReferenceObjectComparer

    A object comparer that compares two objects and sees if they are based on the same reference.

    Inheritance
    System.Object
    ReferenceObjectComparer
    Implements
    IReferenceObjectComparer
    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.

    Implements

    IReferenceObjectComparer

    Extension Methods

    EnumExtensions.GetNames<TEnum>(TEnum)
    In This Article
    Back to top (c) Meriworks 2002-2022