Archive for the 'Code' category

String.LastIndexOf(…) subtleties

Saturday, July 11th, 2009

I was trying to use the String.LastIndexOf (String searchTerm, Int32 startIndex, Int32 count) method, and kept getting and ArgumentOutOfRangeException that made no sense to me. Even though I was 100% sure I was feeding it a valid count (the number of characters to search, starting at the startIndex), it would complain. Finally I called the […]

Code | No comments

You are currently browsing the archives for the Code category.

Meta