Adf.Base.Domain.GuidPropertyParser.IsEqual C# (CSharp) Method

IsEqual() public method

Checks whether the two specified Objects are equal or not.
public IsEqual ( object compare, object to ) : bool
compare object The Object to compare.
to object The Object to compare with.
return bool
        public bool IsEqual(object compare, object to)
        {
            if (compare is Guid && to is Guid)
            {
                Guid left = (Guid)compare;
                Guid right = (Guid)to;

                return left == right;
            }

            return false;
        }