Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.
I would like the ArrayList to be switched to a List, but I can't pass a generic List (as far as I know), because I always need the Of Type modifier, and there are two variations on the theme. Additionally, I'd like to be able to handle ArrayLists as well. All of these are collections, right? Is there a way to treat a parameter as a generic list?
Private Sub readTextFile(ByVal file As String, ByRef al_txtFileContents As ArrayList)
to call a function with this declaration:
Call readTextFile(Of ArrayList)(file, al_OptionStrikeCodes) Call readTextFile(Of List(Of List(Of String)))(file, al_OptionStrikeCodes)
which keeps giving an invalid cast on the function call, even though the variable is declared as the same type as shown in the function call.
Private Sub readTextFile(Of T)(ByVal file As String, ByRef inputList As ICollection(Of T))
|Get hold of longitude and latitude in iframe string||11||45|
|Datagridview column when exported to Excel changes vb.net||1||13|
|How do sunrise and sunset times change with altitude||9||20|
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
11 Experts available now in Live!