OrderBy is not a method on List<T> - rather, it is defined as an extension method of Enumerable.OrderBy .
Since this is not a class method, you need to make the compiler see this. You can do this by calling:
this.OrderBy (a => Guid.NewGuid ());
However, I recommend revising your approach here. Subclassing List<T> is a bad idea - it is much better to implement IList<T> by encapsulating your List<T> instance. List<T> should be an implementation detail, not part of the API itself.
Reed Copsey Jan 27 '10 at 1:52 2010-01-27 01:52
source share