Click here to Skip to main content
15,881,585 members

Comments by ChunkyStool (Top 7 by date)

ChunkyStool 3-Jan-12 17:57pm View    
Deleted
Reason for my vote of 3
Looks OK, but stopwatch is just a wrapper for a couple of timestamps. That's why StopWatch isn't disposable -- it contains value types. I would have just created a custom stopwatch class that included the start counter.
As far as the collection goes, custom collections are easy. (Derive from Collection<T>).
Making the class disposable isn't necessary.
ChunkyStool 1-Nov-11 18:14pm View    
Deleted
You are probably correct, but I doubt if the difference is significant. Regex engines are highly optimized.
ChunkyStool 1-Nov-11 15:37pm View    
Deleted
I submitted the regex alternative again. Maybe a few code comments will help it pass censorship???
ChunkyStool 1-Nov-11 14:34pm View    
Deleted
Not sure why my regex alternative wasn't good enough for public consumption. Especially since it involves *much* less code and works like a charm.
ChunkyStool 31-Oct-11 20:05pm View    
Deleted
Have you considered using regular expressions?