Org.IdentityConnectors.Framework.Common.Objects.ObjectClassInfo.Equals C# (CSharp) Method

Equals() public method

public Equals ( Object obj ) : bool
obj Object
return bool
        public override bool Equals(Object obj)
        {
            // test identity
            if (this == obj)
            {
                return true;
            }

            // test for null..
            if (obj == null)
            {
                return false;
            }

            if (!obj.GetType().Equals(this.GetType()))
            {
                return false;
            }

            ObjectClassInfo other = obj as ObjectClassInfo;

            if (!Is(other.ObjectType))
            {
                return false;
            }

            if (!CollectionUtil.Equals(ConnectorAttributeInfos,
                                       other.ConnectorAttributeInfos))
            {
                return false;
            }

            if (_isContainer != other._isContainer)
            {
                return false;
            }

            return true;
        }