F
Fred Chateau
How can I convert a string into a nullable integer?
If string is empty, convert to nullable integer. Set value to null. Else, convert string value to
nullable integer value.
In other words, I want to be able to do the following:
Int32? ID = String.IsNullOrEmpty(value.ID) ? null : Convert.ToInt32?(value.ID)
If string is empty, convert to nullable integer. Set value to null. Else, convert string value to
nullable integer value.
In other words, I want to be able to do the following:
Int32? ID = String.IsNullOrEmpty(value.ID) ? null : Convert.ToInt32?(value.ID)