Public Function Cricket() As List(Of String)
Dim list2 As New List(Of String)() With { _
"Bat", _
"ball", _
"Cricket", _
"baseball", _
"MLB", _
"Derbyshire", _
"Durham", _
"Essex", _
"Glamorgan", _
"Gloucestershire", _
"Hampshire", _
}
'string str;
Return list2
End Function
the error is Name of field or property being initialized in an object initializer must start with '.'.