This project has moved and is read-only. For the latest updates, please go here.


StringValueAttribute does not allow whitespace-only.


There is an unneeded restriction in the StringValueAttribute constructor that disallows null or whitespace strings. However, whitespace is a perfectly legitimate value if you want an enumeration to display as blank.

If nulls or empties cause issues, please change the check from !string.IsNullOrWitespace(value) to !string.IsNullOrEmpty(value). If not, please remove the check entirely.


accessguru wrote Feb 20 at 2:06 PM

Thanks for the feedback. This feature has been released in v1.1.0.0 along with a new NuGet package.

SvdSinner wrote Feb 22 at 8:24 PM

Wow! Thanks for the fast fix!

wrote Nov 30 at 8:28 PM