I'm trying to convert some C# code to VB but I’m getting an error. What would be the correct VB syntax?
C#
return new List<string> {"First Name", "Last Name", "First & Last Name", "None"};
VB
Return New List(Of String)() From {"First Name", "Last Name", "First & Last Name", "None"}
And how about would I convert this too? Dim list As New List(Of Country)() From { New Country() With { Key .Name = "Select Country", Key .Code = "0" } }
Thanks