Re: [ADVANCED-DOTNET] WaitHandle.WaitAny Limitations

2003-11-04 Thread Thong (Tum) Nguyen
If there's no way to reduce the number of events (by sharing events) then you might have to just resort to using a timeout and polling or using a separate thread to wait on each block of 64 events and then get those threads to notify the main thread on one shared event. > -Original Message

Re: [ADVANCED-DOTNET] C# generics constraints syntax

2003-10-24 Thread Thong (Tum) Nguyen
readability first, personally. It'd be alot easier to read > > > > > > public class Dictionary where KeyType : > > > IComparable, ICollection, IAnotherThing, ValueType : IComparable, > > > IDictionaryValue, IAnotherRestriction > > > > > &

Re: [ADVANCED-DOTNET] C# generics constraints syntax

2003-10-23 Thread Thong (Tum) Nguyen
uch larger, especially as the > argument list starts to grow. Imagine 7 or 8 type arguments with > constraints, unlikely as it may be, with ANY existing syntax...doesn't > look > pretty does it? > > > - Original Message - > From: "Thong (Tum) Nguyen" &l

Re: [ADVANCED-DOTNET] C# generics constraints syntax

2003-10-23 Thread Thong (Tum) Nguyen
ryValue, > IAnotherRestriction > > than > public class Dictionary ValueType : IComparable, IDictionaryValue, IAnotherRestriction>; > > Beyond that, I imagine parsing is easier this way. It would be tough to > determine what the second type name is, should it be named ICollection, > IA

Re: [ADVANCED-DOTNET] C# generics constraints syntax

2003-10-23 Thread Thong (Tum) Nguyen
mparable, 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

[ADVANCED-DOTNET] C# generics constraints syntax

2003-10-22 Thread Thong (Tum) Nguyen
Hey folks, Can anyone think of a reason why the constraints syntax is this: public class Dictionary where KeyType : IComparable rather than this: public class Dictionary ? The former adds an additional (unreserved?) keyword to the language and locates two related things apart from each other