How to add items to IList in VB.NET

1 Answer

0 votes
Imports System
Imports System.Collections.Generic

Public Class Program
    Public Shared Sub Main(ByVal args As String())
        Dim lst As IList(Of Double) = New List(Of Double)()
		
        lst.Add(3.14)
        lst.Add(898.9089)
        lst.Add(0.007)
		
        Console.WriteLine(String.Join(", ", lst))
    End Sub
End Class



' run:
'
' 3.14, 898.9089, 0.007
'

 



answered Mar 4, 2024 by avibootz
...