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

Equals() public method

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

            return this.Name == consumer.Name
                && this.Id == consumer.Id;
        }

Same methods

ConsumerStub::Equals ( object obj ) : bool