> public class Dictionary<T,S> : IEnumerable
> where T : Bar, Bax, new()
> where S : IComparable, new()

> BTW, what does the "new()" do?

It insures the type has a public (parameterless) constructor, so that new
instances of T and S can be created. There is a new C# 2.0 document that
talks about this for anyone that hasn't seen it yet:

http://msdn.microsoft.com/vcsharp/team/language/default.aspx

Cheers,
Robin

===================================
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

Reply via email to