Example #1
0
        public bool Equals(ThemeResourceKey other)
        {
            Enumerator1.Reset(_keyParts);
            Enumerator2.Reset(other._keyParts);

            while (true)
            {
                var c1 = Enumerator1.MoveNext();
                var c2 = Enumerator2.MoveNext();

                if (c1 != c2)
                {
                    return(false);
                }

                if (c1 == 0)
                {
                    break;
                }
            }

            return(true);
        }
Example #2
0
 public void Reset()
 {
     Enumerator1.Reset(); Enumerator2.Reset();
 }