EN IYI TARAFı C# IENUMERATOR NEDEN KULLANMALıYıZ

En iyi Tarafı C# IEnumerator neden kullanmalıyız

It would be perfectly yasal to compile the above to IL without emitting any additional classes and simply reusing existing classesThe following example shows an implementation of the IEnumerator interface for a collection class of custom objects. The custom object is an instance of the type Box, and the collection class is BoxCollection. This code

read more

Bir Unbiased Görünüm C# IEnumerator nedir

When you use a yield return statement within a method "some magic happens" whereby it's not a return in the classic sense, but creates a facility whereby the code kişi resume from where it left off (calling for the next item out of the returned enumerator will cause the code to resume from after the yield, with all the state it had before, rather

read more