Beispiel #1
0
        public void TestEquals()
        {
            for (int i = 0; i < _allStrings.Length; i++)
            {
                if ((i & 0xff) == 0)
                {
                    Debug.WriteLine($"{i:X6} {i*100.0/_allStrings.Length}%");
                }
                string left = _allStrings[i];
                for (int j = i + 1; j < _allStrings.Length; j++)
                {
                    string right = _allStrings[j];

                    bool cmp  = string.Equals(left, right, StringComparison.OrdinalIgnoreCase);
                    bool cmp2 = OrdinalIgnoreCase.EqualsTo(left, right);
                    if (cmp != cmp2)
                    {
                        Console.WriteLine("asd");
                    }
                }
            }
        }