Feeds:
Posts
Comments

Archive for September 13th, 2005

Another nice addition to C# 2.0 is the yield keyword. Yield enables iterator blocks to provide values to an enumerated result, see the following example. // yield-example.cs using System; using System.Collections; public class List { public static IEnumerable Power(int number, int exponent) { int counter = 0; int result = 1; while(counter++ < exponent) { [...]

Read Full Post »

Follow

Get every new post delivered to your Inbox.