Nicholas De La Haye

c# Operators ++ and -- are converted incorrectly to

When converting c# to the operators ++ and -- is converted incorrectly which gives incorrect results then from the original code. Consider the following c# example:- TestValue = TestArray[Index++];

This code uses the original value of say 0 in the variable "Index" and then increments the value afterwards. But converting this code to VB. net does not do this!

After conversion we get the following:-
TestValue = TestArray(System.Math.Max(System.Threading.Interlocked.Increment(Index),Index - 1))

The converted code always increments the value first and never uses the initial value of say 0 before it is incremented. You use a the function Max which take the highest value, but your use of Max never uses "Index - 1" as its always less, making it pointless to use the Max function. The proper conversion would be:
TestValue = TestArray(Index)

Please can you fix this bug?
Problem by Nicholas De La Haye Status: Not Done Comments: 1 Last update: 2016-08-22T15:22:26 by Nicholas De La Haye
Ulaş Şenol

Request.QueryString(string value) to Request.QueryString[string value]

I'm working convert vb to c#. Please do Request.QueryString(string value) to Request.QueryString[string value]
Feedback by Ulaş Şenol Status: Not Done Comments: 0 Last update: 2016-08-17T07:14:47 by Ulaş Şenol
Alberto Rodríguez

Merge converter in my site

Is there any way to use your converter in my web site?
Feedback by Alberto Rodríguez Status: Not Done Comments: 0 Last update: 2016-06-28T00:33:57 by Alberto Rodríguez
Sean Fackrell

New language features

None of the new VB language features appear to be supported, e.g.

multi-line string literals
properties with default values
extension methods (not new but doesn't work)
null coalescing operator (myType?.MyProperty)
Feedback by Sean Fackrell Status: Not Done Comments: 0 Last update: 2016-06-15T12:41:06 by Sean Fackrell
Chris Langsenkamp

Please fix or close all of the open issues

Lots of issues, most over a year old, no attention. If Code Converter has become Abandonware, fine, but please say so and shut down the feedback tool.
Problem by Chris Langsenkamp Status: Not Done Comments: 0 Last update: 2016-05-04T13:35:57 by Chris Langsenkamp
Ryan Price

Post-Increment operator

This c#:
tokenList.Add(kvp.Key, new IndexValue(index++, kvp.Value));
converts to this VB:
tokenList.Add(kvp.Key, New IndexValue(System.Math.Max(System.Threading.Interlocked.Increment(index),index - 1), kvp.Value))

The Math.Max has no place in there.
Problem by Ryan Price Status: Not Done Comments: 0 Last update: 2016-04-29T06:17:22 by Ryan Price
Steve Florence


VB-NET to C#. Converter has incorrect output with My.Resources

VB Input:
Me.pboxOverallStatus.Image = My.Resources.ProgressBar_25_Mod

C# ourput:
Spits out this: this.pboxOverallStatus.Image == My.Resources.ProgressBar_25_Mod
which is plain wrong. "My" does not exists.
Feedback by Steve Florence Status: Not Done Comments: 0 Last update: 2016-04-21T22:29:47 by Steve Florence
Chris Langsenkamp

VB Select Case Conversion

Please stop converting VB's Select Case to C#'s switch block. The latter only allows constants for the cases, whereas Select Case is far more powerful / flexible. Convert to If...elseif...elseif...else ladder instead.
Problem by Chris Langsenkamp Status: Not Done Comments: 1 Last update: 2016-04-17T15:55:21 by Chris Langsenkamp
Nicholas De La Haye

DirectCast of IntPtr for VB .net

C# sharp original code
buffer = (IntPtr)(buffer.ToInt32() + (Index*Marshal.SizeOf(typeof(TRACK_DATA))));

Converts to VB .net:
buffer = DirectCast(buffer.ToInt32() + (Index * Marshal.SizeOf(GetType(TRACK_DATA)), IntPtr)

You can not perform a direct cast from Tnteger to IntPtr type in this way! You must you the following (i.e. New IntPtr(YourIntegerValue)

buffer = New IntPtr(buffer.ToInt32() + (Index * Marshal.SizeOf(GetType(TRACK_DATA))))

Problem by Nicholas De La Haye Status: Not Done Comments: 0 Last update: 2016-04-08T14:19:46 by Nicholas De La Haye
Rita Chavda

conversion error

convesion from vb to c# we neeed table(0) to table[0] conversion and same for row(0) to row[0]
Problem by Rita Chavda Status: Not Done Comments: 0 Last update: 2016-03-14T05:27:04 by Rita Chavda
Displaying items 31 - 40 of 93