Top "Generic-list" questions

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

convert .NET generic List to F# list

Is there a built-in method to convert the .NET List<> into the F# list?

c# .net f# generic-list
Generic List of Generic Interfaces not allowed, any alternative approaches?

I am trying to find the right way to use a Generic List of Generic Interfaces as a variable. Here …

c# generics interface generic-list
What is the VB.NET syntax for using List.FindAll() with a lambda?

In C# I have been performing a FindAll in a generic list as follows: List<group.category> tlist = …

c# vb.net predicate generic-list findall
How do I use System.Data.DataTableExtensions' CopyToDataTable method?

I'd like to create a data table given a List using the CopyToDataTable method available in DataTableExtensions. I've previously asked …

c# datatable generic-list
Whats the 'modern' way to find common items in two Lists<T> of objects?

I have two Generic Lists containing different types, for the sake of example, lets call them Products and Employees. I'm …

c# linq linq-to-objects generic-list
How to Remove specific field from List

Class structure public class EmployeeDetails { public int Id { get; set; } public string Name { get; set; } public string Exp { get; set; } } …

c# list generic-list generic-collections
C# Generic List.Any() throws System.NullReferenceException

Consider the following partial view code snippet List<sellingPrice> Prices = ViewBag.Prices; foreach (var mgmp in mg.messageGroup.…

linq entity-framework c#-4.0 generic-list
Proper way to construct linq queries to achieve fastest performance?

Similar question have been asked here but none fits to my need. I made test cases to see which is …

c# linq entity-framework generic-list
Best way for constructing a unique list of objects in C#

I'm wondering whether it will be quicker to follow one pattern or another for constructing a unique list of objects …

c# performance generic-list