Private  buff(0 to 1023) as  byte

-----Original Message-----
From: Greg Keogh
Sent: Friday, 19 November 2010 7:10 AM
To: 'ozDotNet'
Subject: A quick VB translation check

What is the VB.NET equivalent of this?
 
private byte[] readBuffer;
...
readBuffer = new byte[1024];
 
Is it the following? Or is there a modern replacement for the CreateInstance?
 
Private readBuffer() As Byte
...
readBuffer = Array.CreateInstance(GetType(Byte), 1024)
 
Greg
 
Ps. I wondered by my ''' + enter was not generating XML documentation stubs 
this morning. I wasted time looking though all of the VS2010 options, but it 
turns out that sometime last week I turned off "Generate XML documentation" in 
the project settings and that kills the intellisense.
 

Reply via email to