public IEnumerator <KeyValuePair <T, ICollection <Tuple <TK, TimeSpan?> > > > GetEnumerator() { if (Enabled) { return(_dictionary.GetEnumerator()); } return(null); }
/// <summary> ///GetEnumerator 的测试 ///</summary> public void GetEnumeratorTestHelper <KeyT, ValueT>() { bool allowDuplicateValues = false; // TODO: 初始化为适当的值 MultiDictionary <KeyT, ValueT> target = new MultiDictionary <KeyT, ValueT>(allowDuplicateValues); // TODO: 初始化为适当的值 IEnumerator <KeyValuePair <KeyT, ICollection <ValueT> > > expected = null; // TODO: 初始化为适当的值 IEnumerator <KeyValuePair <KeyT, ICollection <ValueT> > > actual; actual = target.GetEnumerator(); Assert.AreEqual(expected, actual); Assert.Inconclusive("验证此测试方法的正确性。"); }
public IEnumerator <KeyValuePair <T, ICollection <Tuple <TK, TimeSpan?> > > > GetEnumerator() { return(Enabled ? _dictionary.GetEnumerator() : new MultiDictionary <T, Tuple <TK, TimeSpan?> >(true).GetEnumerator()); }
IEnumerator IEnumerable.GetEnumerator() { return(MultiDictionary.GetEnumerator()); }
//makes the dictionary enumerable public IEnumerator <KeyValuePair <TKey, HashSet <TValue> > > GetEnumerator() { return(MultiDictionary.GetEnumerator()); }