Mike Albert

from NRefactory to Refactoring Essentials - Bad Move

I have been using the Telerik online code converter for years. You recently switched from NRefactory to Refactoring Essentials, rendering this beloved tool practically useless. Just about anything I throw at it throws an error in the results window.

Please bring back the old engine.
Feedback by Mike Albert Status: Not Done Comments: 2 Last update: 2017-12-28T19:52:07 by Riaan Pretorius
0
David Aschliman

ObjectMemberInitializerSyntax

ObjectMemberInitializerSyntax is not implemented when converting VB.NET to C#. This makes it difficult to use this tool, since my source uses this technique.

For example...
New ItemAttribute() With {
.ItemID = 51,
.AttributeName = "Attr1",
.AttributeValue = 4,
.SortOrder = 1}
Feedback by David Aschliman Status: Not Done Comments: 1 Last update: 2017-11-30T06:44:51 by Muhammad Tariq
0
Cok King

vb to c# : backcolor is not converted to Background

Problem by Cok King Status: Not Done Comments: 0 Last update: 2017-11-23T12:24:19 by Cok King
0
Steven Cinquegrana

Server Error in '/' Application

Your site is now throwing the follwoing error on submitting a very basicVB function that would have worked fine previously:

"Server Error in '/' Application.
Runtime Error
Description: An exception occurred while processing your request. Additionally, another exception occurred while executing the custom error page for the first exception. The request has been terminated."

Conversion code is:

Private Sub CopyText(
ByVal s As Object,
ByVal e As EventArgs) Handles cmsMain.ItemClicked

Try
Clipboard.SetDataObject(TryCast(s, ContextMenuStrip).SourceControl.Text, False)
Catch x As Exception
MessageBox.Show(x.Message, "Error")
Finally

End Try
End Sub
Problem by Steven Cinquegrana Status: Not Done Comments: 0 Last update: 2017-11-22T06:48:40 by Steven Cinquegrana
0
Filippo Bottega

Module instead static class

The C# code:

public static partial class TableExtensions
{
public static File Find(this ITable<File> table, int ID)
{
return table.FirstOrDefault(t =>
t.ID == ID);
}

public static FileHash Find(this ITable<FileHash> table, int IDFile, int Hash)
{
return table.FirstOrDefault(t =>
t.IDFile == IDFile &&
t.Hash == Hash);
}

public static Group Find(this ITable<Group> table, int ID)
{
return table.FirstOrDefault(t =>
t.ID == ID);
}
}

should be converted to:

Partial Public Module TableExtensions
<System.Runtime.CompilerServices.Extension>
Public Function Find(table As ITable(Of File), ID As Integer) As File
Return table.FirstOrDefault(Function(t) t.ID = ID)
End Function

<System.Runtime.CompilerServices.Extension>
Public Function Find(table As ITable(Of FileHash), IDFile As Integer, Hash As Integer) As FileHash
Return table.FirstOrDefault(Function(t) t.IDFile = IDFile AndAlso t.Hash = Hash)
End Function

<System.Runtime.CompilerServices.Extension>
Public Function Find(table As ITable(Of Group), ID As Integer) As Group
Return table.FirstOrDefault(Function(t) t.ID = ID)
End Function
End Module

instead of:

Public NotInheritable Partial Class TableExtensions
Private Sub New()
End Sub
<System.Runtime.CompilerServices.Extension> _
Public Shared Function Find(table As ITable(Of File), ID As Integer) As File
Return table.FirstOrDefault(Function(t) t.ID = ID)
End Function

<System.Runtime.CompilerServices.Extension> _
Public Shared Function Find(table As ITable(Of FileHash), IDFile As Integer, Hash As Integer) As FileHash
Return table.FirstOrDefault(Function(t) t.IDFile = IDFile AndAlso t.Hash = Hash)
End Function

<System.Runtime.CompilerServices.Extension> _
Public Shared Function Find(table As ITable(Of Group), ID As Integer) As Group
Return table.FirstOrDefault(Function(t) t.ID = ID)
End Function
End Class

Best regards,
Filippo.
Problem by Filippo Bottega Status: Not Done Comments: 0 Last update: 2017-10-25T13:51:27 by Filippo Bottega
0
Seznam cz

Support VB.NET 15.0

Right now the converter does not support newer language features like the ?. operator and is practically useless for any modern VB code. See this file as an example:
https://github.com/ljw1004/platform-specific-analyzer/blob/master/PlatformSpecificAnalyzer/PlatformSpecificAnalyzer.vb

My request is please support the latest VB.NET 15.0 language, thanks.
https://en.wikipedia.org/wiki/Visual_Basic_.NET#2017_.28VB_15.0.29
Feature Request by Seznam cz Status: Not Done Comments: 0 Last update: 2017-09-15T10:53:30 by Seznam cz
0
Victor Richerson

convert to remove linq

I hate linq and lamda expression code so I would like to be able to take something with those and convert it to regular code. I really don't like that you create one off methods with lambda expressions and think it is likely to lead to bad code.
Feature Request by Victor Richerson Status: Not Done Comments: 0 Last update: 2017-09-12T19:35:22 by Victor Richerson
0
Mario Cesar Simão Junior

VB Constants conversion

Need to convert the Constants, like {{Constants.vbCrLf}} to {{Environment.NewLine}}, and many others.
Problem by Mario Cesar Simão Junior Status: Not Done Comments: 0 Last update: 2017-07-27T12:12:30 by Mario Cesar Simão Junior
0
Thomas Johnson

aync not preserved when converting a c# async method to vb

C#:
static async Task<Uri> CreateProductAsync(Product product)

Current conversion to VB:
Private Shared Function CreateProductAsync(product As Product) As Task(Of Uri)

Correct conversion to VB:
Private Shared Async Function CreateProductAsync(product As Product) As Task(Of Uri)
Problem by Thomas Johnson Status: Not Done Comments: 0 Last update: 2017-07-19T16:49:13 by Thomas Johnson
0
Paul Stearns

extern

Converter C#=>VB dies on line 2, column 15 "extern".

[DllImportAttribute("EDITS50.dll", EntryPoint = "Edit_RunEdits")]
public static extern int Edit_RunEdits(
int smfID,
[InAttribute()][MarshalAsAttribute(UnmanagedType.LPStr)] string edit_tag,
[InAttribute()][MarshalAsAttribute(UnmanagedType.LPStr)] string layout_tag,
[InAttribute()][MarshalAsAttribute(UnmanagedType.LPStr)] string data,
int edit_options,
ref int errors_count,
System.IntPtr owner,
System.IntPtr callback_func);
Feedback by Paul Stearns Status: Not Done Comments: 0 Last update: 2017-06-12T12:11:30 by Paul Stearns
0
Displaying items 11 - 20 of 91