Thursday, December 20, 2012

BASICish C#

Below is the C# code.

public static IEnumerable<T> AsEnumerable<T>(this System.Collections.IList source)
{
    return from object item in source select (T)item;
}
Doesn't it smell Basicish?