Here is the VB.NET version of this function:
Public Function get_SasCode() As String
Dim member As String = IIf((Me.bAllMembers OrElse (Me.dataset.Length = 0)), "_ALL_", Me.dataset)
Dim co As String = Me.catobs.ToString
Dim macro As String = Global.ReadFileFromAssembly("EGAddin.CharacterizeData.Characterize_Data.sas")
Dim call As String = String.Format("%charact(dsn={0},lib={1},catobs={2});", member, Me.library, co)
Dim charts As String = IIf(Me.bCharts, Global.ReadFileFromAssembly("EGAddin.CharacterizeData.GraphCode.sas"), "")
Return macro & Environment.NewLine & call & Environment.NewLine & charts
End Function
Great places to start with .NET development:
http://www.gotdotnet.com (Microsoft-supported community)
http://www.codeproject.com
Chris