web analytics

Understanding Generic Collections in C#

Options
@2024-02-23 17:39:12

//order by SeviceDate desc, ProcedureCode asc 

claimList.Sort(delegate(Claim x, Claim y)

{

     int resultDate = 0 - x.ServiceDate.CompareTo(y.serviceDate);

     int resultCode = x.ProcedureCode.CompareTo(y.ProcedureCode);

     return resultDate + resultCode;

}

Comments

You must Sign In to comment on this topic.


© 2024 Digcode.com