Page 54 - CSharp/C#
P. 54
Reading from XML document 907
XmlDocument vs XDocument (Example and comparison) 908
Chapter 165: Yield Keyword 911
Introduction 911
Syntax 911
Remarks 911
Examples 911
Simple Usage 911
More Pertinent Usage 912
Early Termination 912
Correctly checking arguments 913
Return another Enumerable within a method returning Enumerable 915
Lazy Evaluation 915
Try...finally 916
Using yield to create an IEnumerator when implementing IEnumerable 917
Eager evaluation 918
Lazy Evaluation Example: Fibonacci Numbers 918
The difference between break and yield break 919
Credits 921

