LINQ in Action roller

Request for a non-generic IGrouping

It would be great to have a "classic" IGrouping (ie non-generic), upon which IGrouping<K,T> is based, i.e. public interface IGrouping : IEnumerable { object Key { get; } } public interface IGrouping<K, T> : IEnumerable<T>, IGrouping { K Key { get; } } In the absence of IGrouping classic, does anyone know of a simple and non-grubby solution to this: void Print (object data) { if (data is IGrouping<,>) Console.WriteLine ("Key is: " + ((IGrouping<,>) Read More...
Published Friday, June 29, 2007 2:10 AM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication