Click here to Skip to main content
13,001,514 members (57,984 online)

Comments by kiswa00 (Top 6 by date)

kiswa00 16-Jun-11 8:23am View
You can remove the ToString() calls if you replace the " " with ' ' in the Append call. It would then look like:
builder.Append((char.IsUpper(propertyName, i)) ? ' ' + propertyName[i] : propertyName[i];
kiswa00 8-Jun-11 9:16am View
Thanks, I'm glad you found my suggestions useful!
kiswa00 8-Jun-11 9:05am View
Yeah, I forgot to include the check for null or empty. It's there now, thanks!
kiswa00 8-Jun-11 9:01am View
I meant to add that in, thanks for reminding me!
kiswa00 7-Jun-11 8:25am View
Reason for my vote of 3
See comment on alternate.
kiswa00 7-Jun-11 7:58am View
Two things: One, I think you mean "a version below .NET Framework 4.0" not "a version .NET Framework 4.0 or below" - they have very different meanings.

Two, you never use ignorecase in your ParseEnum method. I think your call to Enum.Parse should use ignorecase instead of default(bool) for the last parameter.

Advertise | Privacy | Mobile
Web01 | 2.8.170624.1 | Last Updated 1 Jan 1900
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid