Need help converting from C# to Vb please help.

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi there. Im using this project http://www.codeproject.com/Articles/332615/WPF-Master-Details-MVVM-Application" target="_blank can see it here as a reference type study guide while i work on my own. The project is in C# and I
am writing mine in Vb, I know their are converters but they cant always help...Any ways Im doing fine so far but Ive hit a snag. On the DevLake.MasterDetail.Service layer under OrderService their is this
<pre class="prettyprint" style=" void IOrderService.UpdateOrder(Order i)
{
new Business.Order(i.OrderId).Customer.UpdateOrder(new Business.Order(i.OrderId, i.Description, i.Quantity));
}[/code]
<br/>
<br/>
and when you convert it to Vb I get this:
<pre class="prettyprint lang-vb" style=" Private Sub IOrderService_UpdateOrder(i As Order) Implements IOrderService.UpdateOrder
New Business.Order(i.OrderId).Customer.UpdateOrder(New Business.Order(i.OrderId, i.Description, i.Quantity))
End Sub[/code]
<br/>
(this was done using an on-line converter, one of the better ones Ive found) and this is throwing a "Syntax" error....Actually this one and the same thing for the IOrderService_DeleteOrder. I have one under all my dependent Services that follow this
model. It only appears under the word new (blue squiggle lines) for both the Update and Delete procedures but I cant build or anything. Any suggestions what this should be in Vb? It is an Ajax-enabled WCF Service Im woring with.... Thanks for any input.
Apologies if this is not the right forum for this question, wasnt sure which one to use......<br/>
<
Adam
<br/>

View the full article
 
Back
Top