I am trying create a WCF Data Services ServiceOperation that does grouping on the server side and then sends the data down to the client.
When I try to call it (or e
Here is probably the most basic and generic implementation of IGrouping. Its constructor takes a key and a set of values.
public class Grouping : IGrouping
{
private readonly TKey key;
private readonly IEnumerable values;
public Grouping(TKey key, IEnumerable values)
{
if (values == null)
throw new ArgumentNullException("values");
this.key = key;
this.values = values;
}
public TKey Key
{
get { return key; }
}
public IEnumerator GetEnumerator()
{
return values.GetEnumerator();
}
IEnumerator IEnumerable.GetEnumerator()
{
return GetEnumerator();
}
}