Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Weird conversion
Message
From
13/02/2013 16:57:05
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Weird conversion
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01565962
Message ID:
01565962
Views:
57
If I want to convert that into VB.NET:
void CopyStream(Stream destination, Stream source) {
   int count;
   byte[] buffer = new byte[BUFFER_SIZE];
   while( (count = source.Read(buffer, 0, buffer.Length)) > 0)
       destination.Write(buffer, 0, count);
}
It gives:
Private Sub CopyStream(destination As Stream, source As Stream)
	Dim count As Integer
	Dim buffer As Byte() = New Byte(BUFFER_SIZE - 1) {}
	While (InlineAssignHelper(count, source.Read(buffer, 0, buffer.Length))) > 0
		destination.Write(buffer, 0, count)
	End While
End Sub
Can someone explain me what is this InlineAssignHelper syntax and where does it come from?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform