CardenInsurance

Results 14 issues of CardenInsurance

Problem: In VB.NET, you can write a LINQ query that has no 'select' keyword at the end, but C# requires it to be explicitly stated. This converter tries to add...

VB -> C#

The actual LINQ query that caused this error was really big, but I whittled it down using the online converter (great tool) to just this: ### VB.Net input code ```vbnet...

VB -> C#

### VB.Net input code ```vbnet Public Shared Function Get_List_of_States(Reinsurance_Year As Int16, Optional Agent_Entity_ID As Integer = 0) As List(Of State) Using db As New PRIMEEntities Dim results As List(Of State)...

exception caught
VB -> C#

### VB.Net input code ```vbnet Dim lstCropRecordsToDelete As List(Of PolicyCrop) = If lstCropRecordsToDelete.Count > 0 Then ' do stuff End If ``` ### Erroneous output ```C# var lstCropRecordsToDelete = if...

VB -> C#

This code is modified for brevity. Apologies if I made a technical mistake with the C# "group new by" code - the point is just the field names. ### VB.Net...

VB -> C#

My actual VB.Net code is a complicated LINQ query that gets error CS8122 on a part that says `Where (pd.Record_Type Is Nothing Or pd.Record_Type = "Acreage")` and gets converted to...

VB -> C#

### VB.Net input code ```vbnet Public Class ConversionTest7 Private Class MyEntity Property EntityId As Integer Property FavoriteColorId As Integer Property Name As String End Class Private Class MyColor Property ColorId...

enhancement
VB -> C#

### VB.Net input code ```vbnet Public Class ConversionTest4 Private Class MyEntity Property FavoriteNumber As Integer Property FavoriteColor As String Property Name As String End Class Private Sub BugRepro() Dim entities...

VB -> C#

### VB.Net input code ```vbnet Public Class ConversionTest3 Private Class MyEntity Property EntityId As Integer Property Name As String End Class Private Sub BugRepro() Dim entities As New List(Of MyEntity)...

VB -> C#

Possibly related to Issue #1012 ### VB.Net input code ```vbnet Public Class ConversionTest1 Public Sub BugRepro() Dim dt As New DataTable Parallel.ForEach(dt.AsEnumerable(), Nothing, Sub(row As DataRow) If Not String.IsNullOrWhiteSpace("") Then...

VB -> C#