C# Arrays/Array Lists
I am fairly new to C#
I am trying to retrieve some information from an external data source and
store it in array, once it is in an array I wish to sort it by time.
I know how to do this for just one column in a row, however the
information I require has multiple columns.
For example:
foreach (Appointment Appoint in fapts)
{
// Store Appoint.Subject, Appoint.Start,
Appoint.Organiser.Name.ToString(), Appoint.Location in an array
}
// Sort my array by Appoint.Start
foreach ( item in myNewArray ) {
//print out Appoint.Subject - Appoint.Start,
Appoint.Organiser.Name.ToString() and Appoint.location
}
Many thanks for your help.
No comments:
Post a Comment