c# Programming Glossary: ienumerable.getenumerator
ObservableCollection element-wise Transform/Projection Wrapper http://stackoverflow.com/questions/13920703/observablecollection-element-wise-transform-projection-wrapper return m_TransformedCollection.GetEnumerator IEnumerator IEnumerable.GetEnumerator return IEnumerable m_TransformedCollection .GetEnumerator #endregion..
C#: How to make Sieve of Atkin incremental http://stackoverflow.com/questions/1569393/c-how-to-make-sieve-of-atkin-incremental foreach var p in primes yield return p IEnumerator IEnumerable.GetEnumerator return GetEnumerator Now what I would like is to get rid of..
Missing return statement in a non-void method compiles http://stackoverflow.com/questions/16789832/missing-return-statement-in-a-non-void-method-compiles . This enables you to write stub methods like IEnumerator IEnumerable.GetEnumerator throw new NotImplementedException That's a non void method...
How to split a byte array http://stackoverflow.com/questions/20797/how-to-split-a-byte-array offset i offset count i yield return array i IEnumerator IEnumerable.GetEnumerator IEnumerator T enumerator this.GetEnumerator while enumerator.MoveNext..
How get list of local network computers? http://stackoverflow.com/questions/2557551/how-get-list-of-local-network-computers
Translation of yield into VB.NET http://stackoverflow.com/questions/3811589/translation-of-yield-into-vb-net Public Function GetEnumerator As IEnumerator Implements IEnumerable.GetEnumerator Dim index As Integer 0 Dim current As Match Nothing While current..
Why is Enumerable.Range faster than a direct yield loop? http://stackoverflow.com/questions/408452/why-is-enumerable-range-faster-than-a-direct-yield-loop return new RangeEnumerator _Start _Count IEnumerator IEnumerable.GetEnumerator return GetEnumerator private class RangeEnumerator IEnumerator..
How to implement ConcurrentHashSet in .Net http://stackoverflow.com/questions/4306936/how-to-implement-concurrenthashset-in-net return _internal.Keys.GetEnumerator IEnumerator IEnumerable.GetEnumerator return GetEnumerator c# .net concurrency dictionary hashset..
How to read a text file reversely with iterator in C# http://stackoverflow.com/questions/452902/how-to-read-a-text-file-reversely-with-iterator-in-c-sharp previousEnd finally stream.Dispose IEnumerator IEnumerable.GetEnumerator return GetEnumerator StreamUtil.cs public static class StreamUtil..
Retrieval of items from custom collection http://stackoverflow.com/questions/5382299/retrieval-of-items-from-custom-collection in personDictionary yield return pair.Value IEnumerator IEnumerable.GetEnumerator return this.GetEnumerator ... static void Main Person personA..
Look if a method is called inside a method using reflection http://stackoverflow.com/questions/5741350/look-if-a-method-is-called-inside-a-method-using-reflection methodDefinition.Body null IEnumerator IEnumerable.GetEnumerator return GetEnumerator internal class CompareMembers T IComparer..
Covariance and IList http://stackoverflow.com/questions/5832094/covariance-and-ilist T GetEnumerator return tail.GetEnumerator IEnumerator IEnumerable.GetEnumerator return tail.GetEnumerator public int Count get return tail.Count..
|