RE: System.Byte() array convert to string... HOW???
From: Jon Skeet [C# MVP] (skeet_at_pobox.com)
Date: 07/22/04
- Next message: Vin: "Message board layered architecture 2-tier or 3-tier?"
- Previous message: Hui: "Data type conversion problem. HELP [urgent]"
- In reply to: Jarrod Sharp: "RE: System.Byte() array convert to string... HOW???"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 22 Jul 2004 07:15:35 +0100
Jarrod Sharp <JarrodSharp@discussions.microsoft.com> wrote:
> this worked as well.... but geez.... why no GetData(string) ??
Because a socket is a fundamentally binary object. I think it's great
that the framework makes such a clear distinction between binary data
and character data.
Note that you don't need to create a new instance of ASCIIEncoding
yourself - just use the Encoding.ASCII property.
(I'd also suggest using the Socket class that's built into the
framework, btw - or even TcpClient.)
-- Jon Skeet - <skeet@pobox.com> http://www.pobox.com/~skeet If replying to the group, please do not mail me too
- Next message: Vin: "Message board layered architecture 2-tier or 3-tier?"
- Previous message: Hui: "Data type conversion problem. HELP [urgent]"
- In reply to: Jarrod Sharp: "RE: System.Byte() array convert to string... HOW???"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|