Home
last modified time | relevance | path

Searched refs:enumerator (Results 1 – 3 of 3) sorted by relevance

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Test/Collections/
DMapFieldTest.cs292 var enumerator = map.GetEnumerator(); in IDictionary_GetEnumerator()
298 Assert.IsTrue(enumerator.MoveNext()); in IDictionary_GetEnumerator()
299 Assert.AreEqual("x", enumerator.Key); in IDictionary_GetEnumerator()
300 Assert.AreEqual("y", enumerator.Value); in IDictionary_GetEnumerator()
301 Assert.AreEqual(new DictionaryEntry("x", "y"), enumerator.Current); in IDictionary_GetEnumerator()
302 Assert.AreEqual(new DictionaryEntry("x", "y"), enumerator.Entry); in IDictionary_GetEnumerator()
303 Assert.IsFalse(enumerator.MoveNext()); in IDictionary_GetEnumerator()
305 enumerator.Reset(); in IDictionary_GetEnumerator()
307 Assert.IsTrue(enumerator.MoveNext()); in IDictionary_GetEnumerator()
308 Assert.AreEqual("x", enumerator.Key); // Assume the rest are okay in IDictionary_GetEnumerator()
DRepeatedFieldTest.cs295 using (var enumerator = list.GetEnumerator()) in Enumerator()
297 Assert.IsTrue(enumerator.MoveNext()); in Enumerator()
298 Assert.AreEqual("first", enumerator.Current); in Enumerator()
299 Assert.IsTrue(enumerator.MoveNext()); in Enumerator()
300 Assert.AreEqual("second", enumerator.Current); in Enumerator()
301 Assert.IsFalse(enumerator.MoveNext()); in Enumerator()
302 Assert.IsFalse(enumerator.MoveNext()); in Enumerator()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf/Collections/
DMapField.cs553 private readonly IEnumerator<KeyValuePair<TKey, TValue>> enumerator; field in Google.Protobuf.Collections.MapField.DictionaryEnumerator
555 internal DictionaryEnumerator(IEnumerator<KeyValuePair<TKey, TValue>> enumerator) in DictionaryEnumerator() argument
557 this.enumerator = enumerator; in DictionaryEnumerator()
562 return enumerator.MoveNext(); in MoveNext()
567 enumerator.Reset(); in Reset()
572 public object Key { get { return enumerator.Current.Key; } }
573 public object Value { get { return enumerator.Current.Value; } }