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

Equals() public method

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

            if (obj is SimpleAccount)
            {
                var account = (SimpleAccount) obj;

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