IsNullOrWhitespace() Crashes for Null

I have an uninitialized static string that returns true for IsNull(x) and string.IsNullOrWhitespace(x), but when I use x.IsNullOrWhitespace(), it crashes the app entirely with no exception displayed.

Id #25633 | Release: None | Updated: Jul 25, 2014 at 1:37 PM by billhatfield | Created: Jul 25, 2014 at 1:37 PM by billhatfield

Add method : string ConvertToCsvStr<T>(IEnumerable<T> iEnumerable) - converts collection elements to csv string

so List<string> elements "a","b","c" will be returned as "a;b;c".   Proposal of code, but I don't have idea what class should it be extension to : public static string ConvertToCsvStr<T>(IEnum...

Id #10955 | Release: None | Updated: Mar 16, 2013 at 10:48 AM by crpietschmann | Created: Aug 9, 2008 at 1:57 AM by tmodelsk

  • 1-2 of 2 Work Items
    • Previous
    • 1
    • Next
    • Showing
    • All
    • Work Items