Hallo ng,
can anyone help me to translate this c# code to vb?
public static void Exists(int id, Action<bool> result) { var cmd = new ExistsCommand(id); DataPortal.BeginExecute<ExistsCommand>(cmd, (o, e) => { if (e.Error != null) throw e.Error; else result(e.Object.Exists); }); }
http://www.developerfusion.com/tools/convert/csharp-to-vb/
Result:
Public Shared Sub Exists(id As Integer, result As Action(Of Boolean))
Dim cmd = New ExistsCommand(id)
DataPortal.BeginExecute(Of ExistsCommand)(cmd, Function(o, e)
If e.[Error] IsNot Nothing Then
Throw e.[Error]
Else
result(e.[Object].Exists)
End If
End Function)
End Sub
Thanks,
i found this one:
http://converter.telerik.com/
Copyright (c) Marimer LLC