public int DictionaryVirtualValue() { IEqualityComparer <string> comparer = new OrdinalStringComparer(); Dictionary <string, int> dictionary = new(Count, comparer); return(PopulateDictionary(dictionary)); }
public int FictionaryVirtualValue() { IEqualityComparer <string> comparer = new OrdinalStringComparer(); using Fictionary <string, int, IEqualityComparer <string> > fictionaryVirtual = new(Count, comparer); return(PopulateDictionary(fictionaryVirtual)); }
/// <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;