How to Sort List Collection

Posted by Muhammad Akhtar on Stack Overflow See other posts from Stack Overflow or by Muhammad Akhtar
Published on 2010-04-22T06:59:43Z Indexed on 2010/04/22 7:03 UTC
Read the original article Hit count: 299

Filed under:
|
|

I have class like

public class ProgressBars
{
    public ProgressBars()
    { }
    private Int32 _ID;
    private Int32 _Name;
    public virtual Int32 ID {get { return _ID; } set { _ID = value; } }
    public virtual Int32 Name { get { return _Name; } set { _Name = value; }}
}

here is List collection

List<ProgressBars> progress;
progress.Sort //I need to get sort here by Name

how can I sort this collection?

Thanks

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about c#