Assuming this is internal to a method, using Instant VB:
Dim buff As Byte() = New Byte(size - 1){}
Note that in VB you specify the upper bound when sizing an array, unlike in
C# where the length is specified, so the "- 1" here is necessary.
--
David Anton www.tangiblesoftwaresolutions.com
Instant C#: VB.NET to C# Converter
Instant VB: C# to VB.NET Converter
Instant C++: C# to C++ Converter
Instant J#: VB.NET to J# Converter
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.