Top "Generic-list" questions

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

Converting a List of Base type to a List of Inherited Type

I would be certain that this question addresses something that would have been brought up in a previous question, but …

c# generic-list
How can I sort List<T> based on properties of T?

My Code looks like this : Collection<NameValueCollection> optionInfoCollection = .... List<NameValueCollection> optionInfoList = new List<NameValueCollection>(); …

c# sorting generic-list
Required Attribute on Generic List Property

Is it possible to put a [Required] attribute onto a List<> property? I bind to a generic list …

asp.net-mvc validation model generic-list
Java generic list return type

I'm having some problems with a method returning a generic list. The code is basically this: public class MyClass{ private …

java generics generic-list
How to specify a List<MyCustomType> as a "Return Type" for a UML Interface Property

In my Visio 2007 UML document I am unable to figure out how I can add an operation to an Interface …

visio generic-list user-defined-types
How to OrderBy on a generic IEnumerable (IEnumerable<T>) using LINQ in C#?

In my generic repository I have below method: public virtual IEnumerable<T> GetAll<T>() where T : …

c# linq sql-order-by generic-list
How to reverse a generic list without changing the same list?

I have a generic list that is being used inside a method that's being called 4 times. This method writes a …

c# reverse generic-list
How can i sort Generic list with Linq?

How can i sort myScriptCellsCount.MyCellsCharactersCount (list int type) in linq public class MyExcelSheetsCells { public List<int> MyCellsCharactersCount { …

c# linq .net-3.5 sorting generic-list
How to bind a ComboBox to a generic List with deep DisplayMember and ValueMember properties?

I am trying to bind a generic list like List Parents to a ComboBox. public Form1() { InitializeComponent(); List<Parent&…

c# winforms binding combobox generic-list
Alphabetically sort a generic list of objects using a specified property

I am writing an address book program. I have each person's details stored in a List<Person>. I …

c# sorting generic-list