Re: [DOTNET] Encoding Namespace Question.

2002-05-01 Thread Rolls, Robert
Thanks drew. ASCIIEncoding.ASCII.X() is a little bit like re-stating the obvious. Encoding.ASCII looks a whole lot smooother. R. -Original Message- From: Marsh, Drew [mailto:[EMAIL PROTECTED]] Sent: Thursday, 2 May 2002 12:34 To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Encoding

Re: [DOTNET] Encoding Namespace Question.

2002-05-01 Thread Rolls, Robert
looks as though I confused myself with static members and instance members! for the documentation, make a lot more sense now! -Original Message- From: Rolls, Robert [mailto:[EMAIL PROTECTED]] Sent: Thursday, 2 May 2002 10:23 To: [EMAIL PROTECTED] Subject: [DOTNET] Encoding Namespace

Re: [DOTNET] Encoding Namespace Question.

2002-05-01 Thread Marsh, Drew
Rolls, Robert [mailto:[EMAIL PROTECTED]] wrote: > I'm a little bit confused over all the encoding types and the > documentation and I have a query with the following - > > is this equivalent - > > Byte[] a = Encoding.ASCII.GetBytes("Fred"); > Byte[] b = ASCIIEncoding.ASCII.GetBytes("Fred"); > > a

[DOTNET] Encoding Namespace Question.

2002-05-01 Thread Rolls, Robert
I'm a little bit confused over all the encoding types and the documentation and I have a query with the following - is this equivalent - Byte[] a = Encoding.ASCII.GetBytes("Fred"); Byte[] b = ASCIIEncoding.ASCII.GetBytes("Fred"); and the same for UnicodeEncoding, UTF7Encoding, UTF8Encoding? Th