EDN Admin
Well-known member
Im learning in c#.
I have a code from Vb.Net. And Im trying convert it to C#. I used google and found some website for do that (example : http://www.developerfusion.com/tools/convert/vb-to-csharp/ , http://converter.telerik.com/ ),
But they can not convert it. <span class="x_x_short_text" id="x_x_result_box" lang="en
<span class="x_x_hps a few errors<span class="x_x_hps have occurred (example : about EOF . . . etc). Anyone help me convert it!
<pre class="prettyprint lang-vb Private Sub Product_Validate(results As EntityValidationResultsBuilder)
If Me.Product IsNot Nothing Then
Dim dupes = From detail In Me.OrDerHeader.OrderDetails
Where detail.Product IsNot Nothing AndAlso
detail.Product.Id = Me.Product.Id AndAlso
detail IsNot Me
If dupes.Any Then
results.AddPropertyError (Me.Product.ProductName +
" is a duplicate product.")
EndIf
End If
End Sub <pre class="lang-vb prettyprint <span class="com this code from Beth Massi - Visual Lightswith "How do i video?"[/code] [/code]
<br/>
View the full article
I have a code from Vb.Net. And Im trying convert it to C#. I used google and found some website for do that (example : http://www.developerfusion.com/tools/convert/vb-to-csharp/ , http://converter.telerik.com/ ),
But they can not convert it. <span class="x_x_short_text" id="x_x_result_box" lang="en
<span class="x_x_hps a few errors<span class="x_x_hps have occurred (example : about EOF . . . etc). Anyone help me convert it!
<pre class="prettyprint lang-vb Private Sub Product_Validate(results As EntityValidationResultsBuilder)
If Me.Product IsNot Nothing Then
Dim dupes = From detail In Me.OrDerHeader.OrderDetails
Where detail.Product IsNot Nothing AndAlso
detail.Product.Id = Me.Product.Id AndAlso
detail IsNot Me
If dupes.Any Then
results.AddPropertyError (Me.Product.ProductName +
" is a duplicate product.")
EndIf
End If
End Sub <pre class="lang-vb prettyprint <span class="com this code from Beth Massi - Visual Lightswith "How do i video?"[/code] [/code]
<br/>
View the full article