Re: [DotNetDevelopment] converting c# to vb.net

2012-07-18 Thread Niels
Hi Rene, There are numerous tools available to convert between .net languages with one mouse click. I did this with SharpDevelop 4 http://www.icsharpcode.net/OpenSource/SD/ See converted function below. Wish you luck. Niels ' ' * Created by SharpDevelop. ' * User: kooiman ' * Date: 2012-07-18

Re: [DotNetDevelopment] converting c# to vb.net

2012-07-18 Thread Anuj Sharma
Please try below code:- Private Sub WriteObfuscatedStream(ByVal resourceName As String, ByVal stream As Stream, ByVal resource As String) Dim bufSize As Integer = 4096 Dim guidByteSize As Integer = 16 Dim obfuscatedByte As Integer = 32 Dim startPos As Integer = (re

Re: [DotNetDevelopment] converting c# to vb.net

2012-07-18 Thread Jeff Steinkamp
change the ByRef in the parameter list to ByVal and you should be good to go. On 07/17/2012 08:13 AM, Rene Malingre wrote: Hello all. Please be nice, I am trying to learn VB.NET. I do not know c# at all. I wish to convert a routine from c# to vb.net. I think I am messing up the use of byt