How to Sort Typed 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:13 UTC
Read the original article Hit count: 260

Filed under:
|
|

I have class like

public class ProgressBars
{
    public ProgressBars()
    { }
    private Int32 _ID;
    private string _Name;
    public virtual Int32 ID {get { return _ID; } set { _ID = value; } }
    public virtual string 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 by Name?

Thanks

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about c#