Welcome to MSDN Blogs Sign in | Join | Help

February 2005 - Posts

A list of CLR bloggers [Kit George]

Shawn Farkas has made a list of various bloggers from the CLR, so you can know who the best personis to follow for various issues. The list is available here
Posted by BCLTeam | 0 Comments

Knowing when NOT to use RegEx to match Strings (System.Text.RegularExpressions) [Kit George]

We recently got asked this question by a customer: " In C#, how do I ensure that a string entered into a text box is of the format: letter,number,letter,number,letter,number ?" The first answer seems to be pretty straightforward: use RegEx! Regular Expressions
Posted by BCLTeam | 16 Comments

A Breaking Change we did in StringBuilder [Kit George]

Once again, we continue to have robust, passionate discussions around the breaking change bar for fixes. The BCL team itself recently had a heated discussion between the Program Manager, Tester, and Developer, surrounding a particular change that I thought
Posted by BCLTeam | 5 Comments

Using Reflection to help formulate design guidelines [Kit George]

So I thought I would share some code I wrote today, to help me formulate a design guideline. I'm trying to define what we should do for 'min' and 'max' as a rule for design guidelines: should it be Min and Max? Or Minimum and Maximum? The first question
Posted by BCLTeam | 0 Comments

String.Split and and some more robust behavior [Kit George]

We get a lot of people pointing out a fundamental design issue with String.Split: when you do your split, it actually splits at every item found, even if the items are contiguous. Now this actually is useful for some scenarios. For example, imagine you
Posted by BCLTeam | 8 Comments

Performance of IConvertible operations: which operation is fastest? [Kit George]

I saw this question recently: " Double d = (( IConvertible ) o).ToDouble( System.Threading. Thread .CurrentThread.CurrentCulture) ; Is this the best way (speed, correctness) to convert a boxed instance of one primitive types below to a double?" I thought
Posted by BCLTeam | 5 Comments

Regex hangs with my expression [David Gutierrez]

Well, actually, it doesn't hang. It just takes a really really long time, and you haven't waited long enough for it to finish. One of the pitfalls with regular expression is that you can write expressions which don't perform very well. In particular,
Posted by BCLTeam | 8 Comments
Filed under:
 
Page view tracker