コード例 #1
0
ファイル: ToolManifestPackage.cs プロジェクト: xontab/toolset
        private bool CommandNamesEqual(ToolCommandName[] otherCommandNames)
        {
            if (CommandNames == null)
            {
                return(otherCommandNames == null);
            }

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

            return(CommandNames.SequenceEqual(otherCommandNames));
        }
コード例 #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));
     }
 }