Mark01
asked on
C# Argument Error
I am trying to work with a simple C# method argument but I get parenthesis and semicolon expected errors.
Code:
This is not homework for a class. It is self-study using books.
Code:
private void OpenFile(ByVal AFileName As String)
I am trying to convert the following VB.Net sub into a C# method:Public Sub OpenFile(ByVal AFileName As String)
Dim psi As New ProcessStartInfo()
psi.UseShellExecute = True
psi.FileName = AFileName
Process.Start(psi)
End Sub
Please help resolve the argument error.This is not homework for a class. It is self-study using books.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER