Cmis.Utility.CmisPath.Equals C# (CSharp) Method

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool
        public override bool Equals(object obj)
        {
            if (obj is CmisPath)
            {
                var path = obj as CmisPath;
                if (Object.ReferenceEquals(this, path))
                {
                    return true;
                }
                return _path.Equals(path.ToString());
            }
            throw new ArgumentException("Cannot compare against non-CmisPath object.");
        }