After reading more and more and more MSDN docs. I think i have discovered the problem.
According to this documentation
http://msdn2.microsoft.com/en-us/lib...h4(VS.80).aspx
"Reference type (contains a pointer to a class or structure instance)"
"When passed ByVal the procedure cannot change the variable but can change members of the instance to which it points."
...
User Profile
Collapse
-
VB.Net-Winform: Unable to pass IList by value
At the risk of sounding like one of the usual morons who claim everything that goes wrong in their code is a bug - I am nearly convinced the following situation is a bug in VB.NET (and if its not it should be better documented)
I have written a simple function to find the difference between 2 lists (list1 - list2)
...Code:Public Shared Function ListDifference(ByVal list1 As IList, ByVal list2 As IList) As IList
No activity results to display
Show More
Leave a comment: