Apache.Shiro.Authc.SimpleAuthenticationInfo.Equals C# (CSharp) Method

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool
        public override bool Equals(object obj)
        {
            if (obj == this)
            {
                return true;
            }

            if (obj is SimpleAuthenticationInfo)
            {
                var info = (SimpleAuthenticationInfo) obj;

                return (Principals == null ? info.Principals == null : Principals.Equals(info.Principals));
            }
            return false;
        }