Beispiel #1
0
        public int DictionaryVirtualValue()
        {
            IEqualityComparer <string> comparer   = new OrdinalStringComparer();
            Dictionary <string, int>   dictionary = new(Count, comparer);

            return(PopulateDictionary(dictionary));
        }
Beispiel #2
0
        public int FictionaryVirtualValue()
        {
            IEqualityComparer <string> comparer = new OrdinalStringComparer();

            using Fictionary <string, int, IEqualityComparer <string> > fictionaryVirtual = new(Count, comparer);
            return(PopulateDictionary(fictionaryVirtual));
        }
Beispiel #3
0
 /// <summary>
 /// Indicates whether the current <see cref="OrdinalStringComparer"/> object is equal to another <see cref="OrdinalStringComparer"/> object.
 /// </summary>
 /// <param name="other">An object to compare with this object.</param>
 /// <returns>`true`.</returns>
 public bool Equals(OrdinalStringComparer other) => true;