I am wondering what it would take to make something like this work:
using System; class Program { static void Main() { var f = new IFoo {
Wouldn't this be cool. Inline anonymous class:
List.Distinct(new IEqualityComparer() { public override bool Equals(Student x, Student y) { return x.Id == y.Id; } public override int GetHashCode(Student obj) { return obj.Id.GetHashCode(); } })