Это:
public void Somemethod()
{
Action<String[]> updateForm = arguments =>
{
form.WindowState = FormWindowState.Normal;
form.OpenFiles(arguments);
};
}
будет таким же, как:
public void Somemethod()
{
Action<String[]> updateForm = OnAction;
}
//named method
private void OnAction(string[] arguments)
{
form.WindowState = FormWindowState.Normal;
form.OpenFiles(arguments);
}
Затем вы легко переходите на VB.net, примерно так:
Public Sub SomeMethod()
Dim updateForm As Action(Of String()) = New Action(Of String())(AddressOf Me.OnAction)
Me.form.Invoke(updateForm, New Object() { e })
End Sub
Private Sub OnAction(ByVal arguments As String())
form.WindowState = FormWindowState.Normal
form.OpenFiles(arguments)
End Sub