Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Weird conversion
Message
De
13/02/2013 16:57:05
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Weird conversion
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01565962
Message ID:
01565962
Vues:
56
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform