WTF Next?

Dev ramblings from a master of nothing.

  Home  |   Contact  |   Syndication    |   Login
  126 Posts | 0 Stories | 74 Comments | 0 Trackbacks

News

INETA Community Speakers Program
GeeksWithBlogs.net: WTFNext's hosting!

View Stacy Vicknair's profile on LinkedIn

Twitter







Tag Cloud


Archives

Post Categories

Community Links

User Groups

.NET Tips

There are 4 entries for the tag .NET Tips
In Java, this is not the case as far as I know. However, when working with regular expressions in .NET, be weary of just slapping /d in when you need a number alone. Just like Char.IsDigit isn't just numbers, /d follows suit. The reason is that /d and Char.IsDigit are both validating against the Unicode designation "Nd". This stands for number decimal digit, but does not limit itself to just 0-9. If you're using regular expressions to begin with, you probably already realize that it is fairly easy...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

I'm currently studying for my first Microsoft certification exam, the 070-536, and during the process I came across this small quirk. Although most object arrays or collections in VB.NET start at 0, the Match.Groups collection starts at 1. This could potentially be a small frustration for those who don't use regex that often (especially with the added need to extract the information instead of just validating it). So, if you are extracting information using regex in the future, keep in mind your...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Char.IsDigit and Char.IsNumber are both methods within the System namespace. The methods themselves are almost confusing in name at first glance. You might think that they do the same thing, but then why have both? Well, because they don't do the same thing. IsDigit refers to only the decimal digits whereas IsNumber can refer to anything in the numeric Unicode category. So, if you just want decimal, stick with IsDigit. Otherwise, you'll be getting a lot more than you bargained for if cleaning data...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

So it may make sense to you how to fetch information from a DefaultView using RowFilter by binding the view, but what about when you just need to extract a value? After applying a RowFilter, the first inclination might be to use the DefaultView.Table.Rows to get information that is filtered. Well, that is ultimately wrong. The DefaultView.Table returns the table the view had originated from. The table you get does not have the RowFilter restrictions applied, and therefore returns the whole table....
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati