Rbenutzer Muehsam

String array with multiple content, separated by comma

C#:
var reservedWords = new[]
{
"CON", "PRN", "AUX",
};

will be wrongly converted. A working solution for VB.NET would be:

Dim reservedWords() As String = {"CON", "PRN", "AUX"}
Problem by Rbenutzer Muehsam Status: Not Done Comments: 0 Last update: 2014-06-01T11:50:50 by Rbenutzer Muehsam
0
Aleksander Jakubowski

how about converting vb.net to java ?

Feedback by Aleksander Jakubowski Status: Not Done Comments: 0 Last update: 2014-05-22T12:27:08 by Aleksander Jakubowski
0
Marko Mijuskovic

conversion of nullable DateTime type from VB to C# is broken

If I have a VB property defined as:

Public Property LastEditedOn As DateTime?

the conversion to C# fails because of the DateTime? definition. If I remove the question mark it works fine. Here is the video proof:

http://screencast.com/t/y4ysmBz8z

Problem by Marko Mijuskovic Status: Not Done Comments: 0 Last update: 2014-05-06T19:29:14 by Marko Mijuskovic
0
Eric Burdo

tostring and square brackets issues

I converted from VB to C#.

1) The ToString function in C# needs parantheses... these are not added by the converted.

2) There are many instances where square brackets are used... and not parens. The converter gets these wrong.

My example was:

Dim sID As String = e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("NominationEntryID").ToString

Converted to this (borked code):

string sID = e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("NominationEntryID").ToString;

Not this (working code):

string sID = e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["NominationEntryID"].ToString();
Feedback by Eric Burdo Status: Not Done Comments: 0 Last update: 2014-04-11T14:48:14 by Eric Burdo
0
Bret Pelkey

When converting C# default property use new VB default property format

Sample:
C#
public int EmployeeSize { get; set; }
Convert to new VB default format:
Public Property EmployeeSize() As Integer

not old long format of:
Public Property EmployeeSize() As Integer
Get
Return m_EmployeeSize
End Get
Set
m_EmployeeSize = Value
End Set
End Property
Private m_EmployeeSize As Integer
Feature Request by Bret Pelkey Status: Not Done Comments: 0 Last update: 2014-03-04T18:42:06 by Bret Pelkey
0
Stuart Lucas

virtual attributes

When converting c# virtual attributes. It converts both the VB property to overridable (good) and the underlying private (encapsulated) attribute to overridable causing a syntax error in VB.
Feedback by Stuart Lucas Status: Not Done Comments: 0 Last update: 2013-11-15T15:06:44 by Stuart Lucas
0
Tammam Koujan

Casting Error

converting this line of code:
int result = MyCmd.ExecuteScalar() as int;
give this result
Dim result As Integer = TryCast(MyCmd.ExecuteScalar(), Integer)
witch give this error
'TryCast' operand must be reference type, but 'Integer' is a value type.


Feedback by Tammam Koujan Status: Not Done Comments: 0 Last update: 2013-11-12T12:15:23 by Tammam Koujan
0
Tammam Koujan

error when converting to char type

converting this line
e.KeyChar = (char)0;
give :
e.KeyChar = CChar(0)
which raise an error , it should be
e.KeyChar = ChrW(0) or e.KeyChar = Chr(0)
Thank you
Problem by Tammam Koujan Status: Not Done Comments: 0 Last update: 2013-11-11T11:59:38 by Tammam Koujan
0
Fco M

lambda with correlated linq query

correlated select from linq is not converted when used inside lambda expresion:
int index = 0;
var workload = grouplist.GroupBy(j => new { j.LOGIN_ID, j.FULL_NAME,j.TEAM_NAME})
.Where(k => k.Key.TEAM_NAME == membergroup)
.Select(i => new
{
CoreID = i.Key.LOGIN_ID,
TicketCount = tickets
.Where(k => k.Assignee_Login_ID == i.Key.LOGIN_ID && k.Assigned_Group==i.Key.TEAM_NAME)
.Count(),
Assignee = i.Key.FULL_NAME,
url = @"~\images\man_" + (1 + (index++) % 5) + ".png"
}).ToList();
Feedback by Fco M Status: Not Done Comments: 0 Last update: 2013-10-21T05:19:47 by Fco M
0
Todd King

Converter does not append Iterator keyword to VB code with yield

If you try to convert the following C#

using System.Collections.Generic;
namespace MyNamespace
{
public class MyClass
{
public IEnumerable<int> GetLengths(IEnumerable<string> arg)
{
foreach (string input in arg)
{
int length = input.Length;
if (length > 10)
yield break;
yield return length;
}
}
}
}

The VB produced does not build because the "Iterator" keyword is not being appended to the method.
Problem by Todd King Status: Not Done Comments: 0 Last update: 2013-09-10T00:05:30 by Todd King
0
Displaying items 71 - 80 of 82