Convert string to int32 default value

  • Thread starter Thread starter Peter
  • Start date Start date
P

Peter

Hello All,

Is there a possibility in C# other then try / catch to convert a string to
int32 with a default value , so the default value is in case of empty string
is 0 otherwise the succesfull converted string?

Thanks
Peter.
 
Back
Top