|
-
Dec 26th, 2011, 07:12 PM
#2
Re: Best Way to Handle Numbers
It may be. If you're accepting strings, after all, you need to retrieve their values some way or another, and so TryParse and Parse are ideal. In fact, it would be much easier than a manual conversion...
If you have type-restricted fields with matching UI elements, consider using type-specific controls like NumericUpDown and DateTimePicker, which automatically adapt based on the culture.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|