Ejemplo n.º 1
0
        public override bool Equals(object obj)
        {
            if (this == obj)
            {
                return(true);
            }
            if (obj == null)
            {
                return(false);
            }
            if (GetType() != obj.GetType())
            {
                return(false);
            }
            var other = (ClientConfig)obj;

            if (Locator == null)
            {
                if (other.Locator != null)
                {
                    return(false);
                }
            }
            else if (!Locator.Equals(other.Locator))
            {
                return(false);
            }
            if (ModuleName == null)
            {
                if (other.ModuleName != null)
                {
                    return(false);
                }
            }
            else if (!ModuleName.Equals(other.ModuleName))
            {
                return(false);
            }
            return(true);
        }
Ejemplo n.º 2
0
 public bool Matches(string aModuleName, string aFunctionName)
 {
     return
         (ModuleName.Equals(aModuleName, StringComparison.InvariantCultureIgnoreCase) &&
          FunctionName.Equals(aFunctionName, StringComparison.InvariantCultureIgnoreCase));
 }