15,881,585 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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?
ChunkyStool
12-Sep-11 21:27pm
View
Deleted
Yutz? Careful, your ego is showing...
ChunkyStool
12-Sep-11 17:44pm
View
Deleted
Reason for my vote of 2
This alternative does not work for several valid cases.
Show More