DotNetWorkQueue.Configuration.BaseConnectionInformation.Equals C# (CSharp) Method

Equals() public method

Determines whether the specified System.Object, is equal to this instance.
public Equals ( object obj ) : bool
obj object The to compare with this instance.
return bool
        public override bool Equals(object obj)
        {
            // Check for null values and compare run-time types.
            if (obj == null || GetType() != obj.GetType())
                return false;

            var connection = (BaseConnectionInformation)obj;
            return _connectionString == connection.ConnectionString && _queueName == connection.QueueName;
        }