[Mono-list] Operator overloading

Jonathan Pryor jonpryor at vt.edu
Sat Jan 8 12:18:00 EST 2011


On Jan 8, 2011, at 12:17 AM, David Henderson wrote:
> Would have been nice if I could have found some documentation leading me to that 
> solution.  Is there a good site or text I should be using?

http://msdn.microsoft.com. :-)

The relevant starting point in the stack trace is List<T>.Sort():

	http://msdn.microsoft.com/en-us/library/b0zbh7b6.aspx

The documentation states:

	Exception: InvalidOperationException
	Condition: The default comparerComparer<T>.Default cannot 
		find an implementation of the IComparable<T>generic 
		interface or the IComparableinterface for type T.

Or further up the callstack you can see Array.Sort<T>(T[], int, int):

	http://msdn.microsoft.com/en-us/library/8kszeddc.aspx

which lists a very similar message.

I don't know what documentation you're using, but MSDN should be fairly clear here. :-)

 - Jon



More information about the Mono-list mailing list