// Copyright (c) Microsoft Corporation. All Rights Reserved.
Using system.collections.generic; use system.text;
Namespace yield {class yield {public static class number of integers. public static int □ IntS = {1, 2, 3, 5, 5, 8, 13, 21, 34, 55, 89, 144, 233 , 377};
// define a property That Returns Only the evenumerable
// define a property That Returns Only the even number
Static void main (string [] args) {
// Display the even number. Console.writeline ("Even Numbers"); Foreach (INT I in Numberlist.Geteven ()) Console.WriteLine (i);
// Display the odd number. Console.writeline ("odd number"); foreach (int I in numberlist.getodd ()) Console.Writeline (i);}}}
CSC Yield.cs
Yield