Israel Aguasanta

cshtml/ vbhtml.

Would be great a converter for cshtml to vbhtml and vice versa.
Idea by Israel Aguasanta Status: Not Done Comments: 2 Last update: 2017-01-05T14:56:12 by Caty Hespel
0
Shubham Singh

Request.referrer.tostring()

converting from c# to Vb-

public ActionResult MyNextAction()
{
return Redirect(Request.Referrer.ToString());
}

Converts to-

public ActionResult MyNextAction()
{
return Redirect(Request.UrlReferrer.ToString());
}
Feedback by Shubham Singh Status: Not Done Comments: 0 Last update: 2016-12-06T14:31:17 by Shubham Singh
0
Darkie Doom

using != if

Using gZipStream = New GZipStream(memoryStream, CompressionMode.Decompress)
Converts to
using (gZipStream == new GZipStream(memoryStream, CompressionMode.Decompress))

Correct one would be
using (var gZipStream = new GZipStream(memoryStream, CompressionMode.Decompress))
Feedback by Darkie Doom Status: Not Done Comments: 0 Last update: 2016-09-29T12:59:01 by Darkie Doom
0
nav037 -

array of anonymous type (vb.net to c#)

Dim plans() = {New With {Key .ParentId = 100000010, Key .ChildId = 100000011}, New With {Key .ParentId = 100000012, Key .ChildId = 100000013}}
It should be converted so
var plans = new[] { new { ParentId = 100000010, ChildId = 100000011 }, new { ParentId = 100000012, ChildId = 100000013 } };
Now converted into a nonworking crap
[] plans = {
new {
ParentId = 100000010,
ChildId = 100000011
},
new {
ParentId = 100000012,
ChildId = 100000013
}
};
Problem by nav037 - Status: Not Done Comments: 0 Last update: 2016-09-20T10:05:06 by nav037 -
0
Nicholas De La Haye

c# Operators ++ and -- are converted incorrectly to vb.net

When converting c# to VB.net 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:
Index+=1
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
0
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
0
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
0
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
0
Jérôme Labbé

Code converted not woring

Batch converter does not find and upload files to convert, getting the unable to find files error.
Problem by Jérôme Labbé Status: Done Comments: 0 Last update: 2016-06-13T12:51:42 by Vladimir Dragoev
0
Jhony Llontop Caballero

Batch converter error

Sorry, we couldn't find the page you're looking for.
The page you were looking for appears to have been moved, deleted or does not exist.
Feedback by Jhony Llontop Caballero Status: Done Comments: 0 Attachments: 1 Last update: 2016-06-13T12:51:35 by Vladimir Dragoev
0
Displaying items 1 - 10 of 74