Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 12. Typecasting and Boxing Value Types > Converting to and from Strings

12.2. Converting to and from Strings

Of course, converting primitive data types isn’t restricted to numeric types. What’s more interesting is the conversion of a string into a numeric value or a date value, and vice versa. This is a very common operation, as most applications allow users to enter numeric values into TextBox controls, which contain strings, not numbers.

You can always perform the conversion by using the methods discussed in the preceding section. Here are a few examples:


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial