Glipho.OAuth.Providers.Database.Consumer.Equals C# (CSharp) Method

Equals() public method

Determines whether the specified Consumer is equal to the current Consumer.
public Equals ( Consumer consumer ) : bool
consumer Consumer The to compare with the current .
return bool
        public bool Equals(Consumer consumer)
        {
            if (consumer == null)
            {
                return false;
            }

            return this.Name == consumer.Name
                && this.Callback == consumer.Callback
                && this.Id == consumer.Id
                && this.Secret == consumer.Secret
                && this.VerificationCodeFormat == consumer.VerificationCodeFormat
                && this.VerificationCodeLength == consumer.VerificationCodeLength
                && (this.Certificate != null && consumer.Certificate != null && this.Certificate.Equals(consumer.Certificate));
        }

Same methods

Consumer::Equals ( object obj ) : bool