public void Add(T attributeValue) { if (!m_entryNameToDataEntry.ContainsKey(attributeValue)) { var newEntry = new CharacterGroupAttribute <T>(attributeValue); Add(newEntry); m_entryNameToDataEntry.Add(attributeValue, newEntry); } m_entryNameToDataEntry[attributeValue].Count++; }
public int Compare(CharacterGroupAttribute <T2> x, CharacterGroupAttribute <T2> y) { return(m_comparer.Compare(x.AttributeValue, y.AttributeValue)); }