January 2017
Intermediate to advanced
338 pages
7h 51m
English
Lazy evaluation always consumes stack to allocate the metadata, the pointer to the expression. The expression evaluated may also be stored on stack if the expression is simple and no reference type (for example, usage of string or having a value captured in WeakReference) is used.
We must consider these scenarios:
Sequence or IEnumerable, including IEnumerable<T> as well.Read now
Unlock full access