Search
Tutorials
How TOs
Home
Top Tutorials
HOW TOs
Presentations
Web Services
Cheat Sheets
About Me
Contact Me
Categories
ASP.NET
Visual C#
Visual Basic
.NET Framework
ADO.NET
AJAX
LINQ
Java
How To Rating
0.0
out of 5
Total Votes:
0
1
2
3
4
5
Saving...
Amazon.co.uk Widgets
How to Sort a StringCollection object
Author:
Waqas Anwar
-
Posted Date:
08-June-2009
-
Category:
.NET Framework
If you want to sort a StringCollection object you have to use following trick as there is no built in method in StringCollection class for sorting.
StringCollection sc = new StringCollection();
sc.Add("Nokia");
sc.Add("Sony");
sc.Add("HP");
sc.Add("Dell");
sc.Add("IBM");
ArrayList.Adapter(sc).Sort();
RELATED HOW TOs
How to Sort a simple Array using LINQ OrderBy Operator
How to Sort Arrays in C#
How to reverse all elements of an Array in .NET
How to Sort ArrayList in C#
How to Sort ArrayList in VB.NET
LEAVE YOUR COMMENTS
Name (
required
)
Email (
required
)
Website
Categories
ASP.NET
Visual C#
Visual Basic
.NET Framework
ADO.NET
AJAX
LINQ
Java
My Portfolio
My Portfolio Summary
Teaching and Training Experience
Speaking Accomplishments
Work Experience
Professional Skillset
Industry Honors and Awards
Educational Background
My Projects
Personal Information
Website Links
Programming HOW TOs
My Presentations
Free XML Web Services
Cheat Sheets
.NET Code Converter
.NET Framework Class Browser
About EzzyLearning
Advertise With Us
Subscribe to RSS Feeds
Copyright @ 2009 EzzyLearning.com