By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,816 Members | 1,332 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,816 IT Pros & Developers. It's quick & easy.

Dim data As [Byte]() = System.Text.Encoding.ASCII.GetBytes(message)?

P: n/a
Question about

Dim data As [Byte]() = System.Text.Encoding.ASCII.GetBytes(message)
Would it be the same to write:

Dim data() As Byte = System.Text.Encoding.ASCII.GetBytes(message) ?

Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
[Byte] is only used if you have created a Type Byte and want to discriminate
between the Type Byte and your own [Byte]. If you do not have a home grown
Type of that name, dont use it.

The syntax for declaring and array in the help file AFAIK, does not show the
Dim data As Type() but favours the first declaration Dim data() As Type.
However, they do both compile and the resultant types are the same.

--
OHM ( Terry Burns ) * Use the following to email me *

Dim ch() As Char = "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
For i As Int32 = 0 To ch.Length - 1
ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
Next
Process.Start("mailto:" & New String(ch))
--
"Emilio" <[void]> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
Question about

Dim data As [Byte]() = System.Text.Encoding.ASCII.GetBytes(message)
Would it be the same to write:

Dim data As [Byte]() = System.Text.Encoding.ASCII.GetBytes(message) ?

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.