NetMud.Data.System.LookupCriteria.Equals C# (CSharp) Method

Equals() public method

Compares this object to another one to see if they are the same object
public Equals ( ILookupCriteria other ) : bool
other ILookupCriteria the object to compare to
return bool
        public bool Equals(ILookupCriteria other)
        {
            if (other != default(ILookupCriteria))
            {
                try
                {
                    return other.Criterion.All(crit => Criterion.ContainsKey(crit.Key) && Criterion[crit.Key].Equals(crit.Value));
                }
                catch (Exception ex)
                {
                    LoggingUtility.LogError(ex);
                }
            }

            return false;
        }