DEV Community

John Mazur
John Mazur

Posted on

VB.NET -> C#

Hi Folks,

I'm trying to convert this VB.NET code to C# and it's proving to be quite the task.

`Public Delegate Sub NAH()

Structure sDirective
Public DirectiveName As String
Public DirectiveFunction As NAH

Public Sub New(A As String, B As NAH)   'New entry
    DirectiveName = A
    DirectiveFunction = B
End Sub
Enter fullscreen mode Exit fullscreen mode

End Structure

Dim DirectiveList() As sDirective = {New sDirective("CSECT", New NAH(AddressOf DirectiveCSECT)),
New sDirective("END", New NAH(AddressOf DirectiveEND)),
New sDirective("EQU", New NAH(AddressOf DirectiveEQU)),
New sDirective("EXT", New NAH(AddressOf DirectiveEXT)),
New sDirective("FCB", New NAH(AddressOf DirectiveFCB)),
New sDirective("FCC", New NAH(AddressOf DirectiveFCC)),
New sDirective("FCN", New NAH(AddressOf DirectiveFCC)),
New sDirective("FDB", New NAH(AddressOf DirectiveFDB)),
New sDirective("NAM", New NAH(AddressOf DirectiveNAM)),
New sDirective("ORG", New NAH(AddressOf DirectiveORG)),
New sDirective("PUB", New NAH(AddressOf DirectivePUB))
}`

Any help gratefully appreciated.

Top comments (0)