private bool CommandNamesEqual(ToolCommandName[] otherCommandNames)
        {
            if (CommandNames == null)
            {
                return(otherCommandNames == null);
            }

            if (otherCommandNames == null)
            {
                return(false);
            }

            return(CommandNames.SequenceEqual(otherCommandNames));
        }
Exemple #2
0
 private bool CommandNamesEqual(ToolCommandName[] otherCommandNames)
 {
     if (CommandNames == null && otherCommandNames == null)
     {
         return(true);
     }
     else if (otherCommandNames == null || CommandNames == null)
     {
         return(false);
     }
     else
     {
         return(CommandNames.SequenceEqual(otherCommandNames));
     }
 }