C# - No ConvertAll For LinkedList<T>?

Apr 9, 2009

Does anyone have an extension method to quickly convert the types in a LinkedList<T> using a Converter<TInput, TOutput>?

View 3 Replies


ADVERTISEMENT

.net - ConvertAll Fails With NullReferenceException?

Jul 21, 2011

I 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?

View 1 Replies

Is LinkedList Implementation Of .Net Threadsafe

Apr 26, 2011

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 Replies

Java - Linkedlist To Arraylist?

Apr 4, 2011

I 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].....

View 1 Replies

Error Declaring LinkedList Of Integer()

Apr 25, 2011

{"Value cannot be null. Parameter name: collection"}
Dim Data() As Integer
Dim SignalData As New LinkedList(Of Integer())(Data) ' <-- error thrown here

View 3 Replies

Error Declaring LinkedList Of Integer()?

May 3, 2011

{"Value cannot be null. Parameter name: collection"}
Dim Data() As Integer
Dim SignalData As New LinkedList(Of Integer())(Data) ' <-- error thrown here

View 2 Replies

VS 2010 : Sorting LinkedList Objects As They Are Added?

Oct 22, 2009

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







Copyrights 2005-15 www.BigResource.com, All rights reserved