C# - No ConvertAll For LinkedList<T>?
Apr 9, 2009Does anyone have an extension method to quickly convert the types in a LinkedList<T> using a Converter<TInput, TOutput>?
View 3 RepliesDoes anyone have an extension method to quickly convert the types in a LinkedList<T> using a Converter<TInput, TOutput>?
View 3 RepliesI am trying to flatten a multi-dimensional array with ConvertAll but I can't get it to work:
Private Function Flatten(ByRef a As Object) As Object
Dim elements As Integer = 0
Dim size As Integer[code]...
Why does it throw NullReferenceException?
I am working on an application which uses multiple threads to work on number of tasks and the parent application receives the output of the task,later to be written to files, currently I am using arraylist to append output to, but that happens to be slow when removing items from queue.I was thinking to convert arraylist part to linkedlist for optimized reads and clears,if linkedList Implementation of .Net is threadsafe or even using arraylist was threadsafe?
View 3 RepliesI am converting java code to vb.net and this line of code gives me different output in enclipse than one in VS.
req1.set(req3, Integer.valueOf(((Integer)req1.get(req3)).intValue() ^ ((Integer)req6.get(req3 + 256)).intValue() & 0x1));
System.out.println(req1.get(req3));
[code].....
{"Value cannot be null. Parameter name: collection"}
Dim Data() As Integer
Dim SignalData As New LinkedList(Of Integer())(Data) ' <-- error thrown here
{"Value cannot be null. Parameter name: collection"}
Dim Data() As Integer
Dim SignalData As New LinkedList(Of Integer())(Data) ' <-- error thrown here
what the point of a Generic.LinkedList is in Visual Basic .NET 2010.I've heard that I can save sorting time with such a list, since it somehow sorts objects as they are added.How can I perform such sorting with this type of list?
View 1 Replies