On 20/12/2010 11:11, Tom Spink wrote: > You could propagate the abstract method type parameter out to the > class definition:
Unfortunately I can't have a generic abstract class because I need: Dictionary<Type,A> precompiledExpressionsByType; and then, in other parts of the library: X result = precompiledExpressionsByType[typeof(X)] .evaluateSuchAndSuchExpr<X>(param1, param2, ...); where evaluateSuchAndSuchExpr() is a method of A (GetXXX in my previous email). Anyway, thank you all for confirming this was a bug in my code[*]; I'll fix it using a different approach. federico [*] In fact the code runs fine, even on MS.NET, when compiled with Mono 2.6. -- Federico Di Gregorio f...@initd.org Ubuntu is an ancient African word meaning "I can't configure Debian". -- somewhere on IRC _______________________________________________ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list