圖解 C# yield - 5分鐘讓你輕鬆掌握迭代器
C# yield 執行流程(caller ↔ iterator) <!-- Caller 欄 --> <rect x="30" y="60" width="180" height="360" rx="8" fill="none" stroke="#9E9E9E" stroke-width="1.5" stroke-dasharray="4,3"/> <text x="120" y="82" text-anchor="middle" font-size="13" fill="#555">呼叫端(foreach)</text> <!-- Iterator 欄 --> <rect x="350" y=&...




