I'm converting some C# code from another project to VB.Net but the following code is throwing an error
Dim obj As System.Collections.ArrayList()
obj = HTMLWorker.ParseToList(New StreamReader("../sample.htm",encoding.Default),
styles)
The error is 'Value of type Systems.Collections.Generic.List() cannot be converted to 'Systems.Collections.Arraylist()'
The original C# code is
System.Collections.ArrayList obj;
obj = HTMLWorker.ParseToList(new StreamReader("../sample.htm",Encoding.Default),
styles);
What would be the correct VB code?
()after ArrayList. Parenthesis are also used to declare arrays in VB, and this could lead to confusion.