Top "Generic-list" questions

language-agnostic tag for a collection of items where each item has a certain position

Saving from List<T> to txt

I want my program to read from two text files into one List<T>. The List<T&…

c# save generic-list
How to make correct clone of the List<MyObject>?

Possible Duplicate: How do I clone a generic list in C#? List<MyObject> a1 = new List<MyObject&…

c# .net generics generic-list
How to fill a DataTable with a List(Of t) or convert a List(Of t) to a DataTable?

I have read many posts on this topic; among them and most recently .NET - Convert Generic Collection to Data …

vb.net datatable structure generic-list
Replace a object in a list of objects

In C#, if I have a List<T>, and I have an object of type T, how can …

c# .net list variable-assignment generic-list
Return Json from Generic List in Web API

I build my list like this: public static List<SearchFormula> SearchData(string searchString) { var searchResults = new List<…

c# json serialization asp.net-web-api generic-list
How to convert an ArrayList to a strongly typed generic list without using a foreach?

See the code sample below. I need the ArrayList to be a generic List. I don't want to use foreach. …

c# .net list arraylist generic-list
XML Serialization of List<T> - XML Root

First question on Stackoverflow (.Net 2.0): So I am trying to return an XML of a List with the following: public …

c# xml xml-serialization root generic-list
C# Update combobox bound to generic list

I have a combobox on my form that is bound to a generic list of string like this: private List&…

c# combobox datasource generic-list
Generic list of generic objects

Let's say I have an object that represents a field of data, that object needs the following properties: Name, Type, …

c# generics generic-list
List.ForEach in vb.net - perplexing me

Consider the following code example: TempList.ForEach(Function(obj) obj.Deleted = True End Function) And this one: TempList.ForEach(Function(…

vb.net foreach generic-list