Mark Nicholls wrote: > static T GetFirstElement<T>(this System.Collections.Generic.IList<T> list) > string s = foo.GetFirstElement(); // this should be enough
If I'm not missing something subtle here: If the method is defined as GetFirstElement<T>, then you must supply T when calling it. This has no relation to extension methods, right? =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com