|
-
Jan 3rd, 2007, 08:49 PM
#12
Re: [2.0] string to byte array?
 Originally Posted by high6
Now also i got a number as a string and am wondering how do i convert it to a number?
Use the Parse or TryParse method of the type you want to convert the string to. If you know for sure that the string represents a valid number then use the Parse method. If there's a chance that it may not be valid, like if it's been entered by the user in a TextBox, then use the TryParse method.
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
|