Ahh that's it. I knew I had forgotten something important :) Thanks,
^Tum > -----Original Message----- > From: Moderated discussion of advanced .NET topics. [mailto:ADVANCED- > [EMAIL PROTECTED] On Behalf Of Adam Sills > Sent: Thursday, 23 October 2003 12:06 p.m. > To: [EMAIL PROTECTED] > Subject: Re: [ADVANCED-DOTNET] C# generics constraints syntax > > Because you can't represent multiple constraints in the one-liner since > commas are already used to separate KeyType and ValType: > > public class Dictionary<KeyType, ValType> > where KeyType: IComparable, IEnumerable, ISomethingElse > > adam.. > > > -----Original Message----- > > From: Moderated discussion of advanced .NET topics. [mailto:ADVANCED- > > [EMAIL PROTECTED] On Behalf Of Thong (Tum) Nguyen > > Sent: Wednesday, October 22, 2003 5:50 PM > > To: [EMAIL PROTECTED] > > Subject: [ADVANCED-DOTNET] C# generics constraints syntax > > > > Hey folks, > > > > Can anyone think of a reason why the constraints syntax is this: > > > > public class Dictionary<KeyType, ValType> where KeyType : IComparable > > > > rather than this: > > > > public class Dictionary<KeyType : IComparable, ValType> > > > > ? > > > > The former adds an additional (unreserved?) keyword to the language and > > locates two related things apart from each other (the generic parameter > & > > its constraint). > > > > There's probably a good reason I've overlooked. > > =================================== > This list is hosted by DevelopMentor. http://www.develop.com > NEW! ASP.NET courses you may be interested in: > > 2 Days of ASP.NET, 29 Sept 2003, in Redmond > http://www.develop.com/courses/2daspdotnet > > Guerrilla ASP.NET, 13 Oct 2003, in Boston > http://www.develop.com/courses/gaspdotnet > > View archives and manage your subscription(s) at > http://discuss.develop.com =================================== This list is hosted by DevelopMentorŪ http://www.develop.com NEW! ASP.NET courses you may be interested in: 2 Days of ASP.NET, 29 Sept 2003, in Redmond http://www.develop.com/courses/2daspdotnet Guerrilla ASP.NET, 13 Oct 2003, in Boston http://www.develop.com/courses/gaspdotnet View archives and manage your subscription(s) at http://discuss.develop.com