コード例 #1
0
ファイル: HashKey.cs プロジェクト: Akirathan/git_sharp
        public bool Equals(HashKey otherKey)
        {
            if (otherKey == null)
            {
                return(false);
            }

            for (int i = 0; i < content.Length; i++)
            {
                if (content[i] != otherKey.content[i])
                {
                    return(false);
                }
            }
            return(true);
        }
コード例 #2
0
ファイル: HashKey.cs プロジェクト: Akirathan/git_sharp
        public bool Equals(string s)
        {
            HashKey other = ParseFromString(s);

            return(Equals(other));
        }