Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Revision on Byte to Hexadecimal
Message
De
03/02/2014 11:36:10
 
 
À
03/02/2014 11:27:05
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01592982
Message ID:
01593011
Vues:
20
>Still, you need a USING. If you don't do that, you're giving extra work to the garbage collector

Like this?
                    ' Open the destination
                    Using loStream As Stream = New FileStream(cFileName, FileMode.Open)

                        ' Create the crypto service provider object
                        Using loMD5CryptoServiceProvider = New MD5CryptoServiceProvider()

                            ' Compute the hash of the fileStream
                            oMD5 = loMD5CryptoServiceProvider.ComputeHash(loStream)

                        End Using

                    End Using
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform