TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Howard Schuchman
NA
5
774
I am looking to sort in C#
Jun 15 2015 4:45 PM
I am looking to sort in C# and to be displayed in the GridView from a .txt file. This is what I have. Any assistange would be appreciated.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ListOfRunners
{
class Runner
{
public string Name { get; set; }
public int Time { get; set; }
public int Age { get; set; }
public int Ranking { get; set; }
public void Print()
{
Console.WriteLine("{0} {1} {2}", Name, Time, Age);
}
public int CompareTo(Runner r)
{
return this.Time.CompareTo(r.Time);
}
}
}
Reply
Answers (
2
)
Fetch Min key in Linq var datatype?
vb.net 2010 edit on looking for valid directory path