Andy W

conversion error

I tried to convert some working C# code but it came back with a conversion error

Error message at the end of the file.
Problem by Andy W Status: Not Done Comments: 0 Attachments: 1 Last update: 2018-04-12T15:03:42 by Andy W
0
CodeDOM CodeDOM

convert custom event from c# to vb

When I convert folowing custom event I get it with out Custom keyword and without RaiseEvent Statement

public static readonly RoutedEvent HelpEvent = EventManager.RegisterRoutedEvent("Help", RoutingStrategy.Bubble, typeof(EventHandler), typeof(Wizard));
public event RoutedEventHandler Help
{
add
{
AddHandler(HelpEvent, value);
}
remove
{
RemoveHandler(HelpEvent, value);
}
}
Feedback by CodeDOM CodeDOM Status: Not Done Comments: 0 Last update: 2018-04-11T18:24:17 by CodeDOM CodeDOM
0
CodeDOM CodeDOM

CONVER

When I convert folowing code I get empty sub New without Mybase.New

public class CancelRoutedEventArgs : RoutedEventArgs
{
public CancelRoutedEventArgs()
: base()
{
}

public CancelRoutedEventArgs(RoutedEvent routedEvent)
: base(routedEvent)
{
}

public CancelRoutedEventArgs(RoutedEvent routedEvent, object source)
: base(routedEvent, source)
{
}
}
Feedback by CodeDOM CodeDOM Status: Not Done Comments: 0 Last update: 2018-04-11T18:19:17 by CodeDOM CodeDOM
0
Dave Owens

argumentoutofrangeexception C# to Vb.Net Conversion

The attached files contain 1) a C# program whose conversion blew up with an argumentoutofrangeexception 2) the error report
Problem by Dave Owens Status: Not Done Comments: 0 Attachments: 2 Last update: 2018-03-29T19:38:25 by Dave Owens
0
Umer Tariq

telerik converter is not working

Hi,
I am using Telerik(VB/C#) Converter since 5 months, It works Perfectly fine. But from yesterday It is not working fine. When I convert vb code to C#. It gives unknown exceptions even I want to convert simple line of code or (Hello World). You can see http://converter.telerik.com/ . Please fix it.
Thanks

Feedback by Umer Tariq Status: Not Done Comments: 13 Last update: 2018-03-12T23:26:42 by Graham Helliwell
0
Mark couvaras

Converter is totally broken now

Could you please fix this. It used to work so well, now it cannot even do a simple line of basic code.
Feedback by Mark couvaras Status: Not Done Comments: 3 Attachments: 1 Last update: 2018-02-21T12:10:41 by Ck Ry
0
Satbir Baidwan

cannot convert code from vb to c# with Date.Parse

cannot convert code from vb to c# with Date.Parse
Problem by Satbir Baidwan Status: Not Done Comments: 1 Last update: 2018-02-09T07:45:21 by Mark couvaras
0
Francesco Battaglia

Misplacement of <MarshalAs> attribute to return value

From C# to VB, if I declare a simple function with the "MarshalAs" attribute in the return value, the VB code will have the "MarshalAs" attribute misplaced, as before the function declaration instead of just before the return value type.

For example:
C# code

[return: MarshalAs(UnmanagedType.U4)]
int MyFunction(int myInt);

translate to this VB code

<MarshalAs(UnmanagedType.U4)>
Private Function MyFunction(ByVal myInt As Integer) As Integer

but the correct translation is:

Private Function MyFunction(ByVal myInt As Integer) As <MarshalAs(UnmanagedType.U4)> Integer
Problem by Francesco Battaglia Status: Not Done Comments: 0 Last update: 2018-02-06T09:25:12 by Francesco Battaglia
0
Steven Cinquegrana

error on any vb to c# conversion

Error is:

CONVERSION ERROR: Code could not be converted. Details:

----- Exception 1 of 1 -----
System.NotImplementedException: Microsoft.CodeAnalysis.CSharp.Syntax.IncompleteMemberSyntax not implemented!
at RefactoringEssentials.VB.Converter.CSharpConverter.NodesVisitor.DefaultVisit(SyntaxNode node)
at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxVisitor`1.VisitIncompleteMember(IncompleteMemberSyntax node)
at Microsoft.CodeAnalysis.CSharp.Syntax.IncompleteMemberSyntax.Accept[TResult](CSharpSyntaxVisitor`1 visitor)
at RefactoringEssentials.VB.Converter.CSharpConverter.NodesVisitor.<VisitCompilationUnit>b__14_1(MemberDeclarationSyntax m)
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at Microsoft.CodeAnalysis.VisualBasic.SyntaxFactory.List[TNode](IEnumerable`1 nodes)
at RefactoringEssentials.VB.Converter.CSharpConverter.NodesVisitor.VisitCompilationUnit(CompilationUnitSyntax node)
at Microsoft.CodeAnalysis.CSharp.Syntax.CompilationUnitSyntax.Accept[TResult](CSharpSyntaxVisitor`1 visitor)
at RefactoringEssentials.VB.Converter.CSharpConverter.Convert(CSharpSyntaxNode input, SemanticModel semanticModel, Document targetDocument)
at RefactoringEssentials.VB.Converter.CSharpConverter.ConvertText(String text, MetadataReference[] references)

Please check for any errors in the original code and try again.

A conversion of the most basic code, eg:

Private Class Test
Property Test1 As String = Nothing
End Class

is sufficient to blow it up.
Problem by Steven Cinquegrana Status: Not Done Comments: 2 Last update: 2018-01-24T14:28:17 by Veselina Raykova
0
Ian Elsinga

code converter completely broken

Code converter does not work at all. We are a Telerik customer and have been using it for years without issue - a number of other people are experiencing the same thing. Would you be able to fix it or in the interim revert it back to the way it was?

Thanks for your immediate attention.

CONVERSION ERROR: Code could not be converted. Details:

----- Exception 1 of 1 -----
System.NotImplementedException: Microsoft.CodeAnalysis.VisualBasic.Syntax.MethodStatementSyntax not implemented!
at RefactoringEssentials.CSharp.Converter.VisualBasicConverter.NodesVisitor.DefaultVisit(SyntaxNode node)
at Microsoft.CodeAnalysis.VisualBasic.VisualBasicSyntaxVisitor`1.VisitMethodStatement(MethodStatementSyntax node)
at Microsoft.CodeAnalysis.VisualBasic.Syntax.MethodStatementSyntax.Accept[TResult](VisualBasicSyntaxVisitor`1 visitor)
at RefactoringEssentials.CSharp.Converter.VisualBasicConverter.NodesVisitor.<ConvertMembers>b__11_0(StatementSyntax m)
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at RefactoringEssentials.CSharp.Converter.VisualBasicConverter.NodesVisitor.<ConvertMembers>d__11.MoveNext()
at Microsoft.CodeAnalysis.CSharp.SyntaxFactory.List[TNode](IEnumerable`1 nodes)
at RefactoringEssentials.CSharp.Converter.VisualBasicConverter.NodesVisitor.VisitInterfaceBlock(InterfaceBlockSyntax node)
at Microsoft.CodeAnalysis.VisualBasic.Syntax.InterfaceBlockSyntax.Accept[TResult](VisualBasicSyntaxVisitor`1 visitor)
at RefactoringEssentials.CSharp.Converter.VisualBasicConverter.NodesVisitor.<VisitCompilationUnit>b__8_1(StatementSyntax m)
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at Microsoft.CodeAnalysis.CSharp.SyntaxFactory.List[TNode](IEnumerable`1 nodes)
at RefactoringEssentials.CSharp.Converter.VisualBasicConverter.NodesVisitor.VisitCompilationUnit(CompilationUnitSyntax node)
at Microsoft.CodeAnalysis.VisualBasic.Syntax.CompilationUnitSyntax.Accept[TResult](VisualBasicSyntaxVisitor`1 visitor)
at RefactoringEssentials.CSharp.Converter.VisualBasicConverter.Convert(VisualBasicSyntaxNode input, SemanticModel semanticModel, Document targetDocument)
at RefactoringEssentials.CSharp.Converter.VisualBasicConverter.ConvertText(String text, MetadataReference[] references)

Please check for any errors in the original code and try again.

Problem by Ian Elsinga Status: Not Done Comments: 0 Last update: 2018-01-08T20:02:01 by Ian Elsinga
0
Displaying items 1 - 10 of 91