February 3rd, 2009
If you are interested in turning a C# string into an integer, float, double or any other kind look no further. In todays post we make use of the convert and parse methods to convert strings into numbers. Read the rest of this entry »
Tags: converting, float, integer, string
Posted in Beginner, Learn C# | No Comments, yet!
November 25th, 2008
![Encoding and Converting C# strings into Byte[] byte arrays](http://www.dijksterhuis.org/wp-content/uploads/2008/11/byte.jpg)
When working with io streams (such when sending and receiving information from a NetworkStream) you often have to convert C# strings into Byte[] (byte arrays) and back again. At this point it is important to consider how you would like to encode your string. This post shows how you can pass a string to a method that only accepts byte arrays — and how you can turn byte arrays back into strings again.
Read the rest of this entry »
Tags: byte, byte array, converting, string
Posted in Beginner, Learn C# | 3 Comments - getting there! »