المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : How to sort Custom class which is of type array as per one of its value



C# Programming
10-17-2009, 06:01 AM
Hi,

I am having a custom class which is of type array.
one of its elements is date.
I want all elements of this class to be be sorted on basis of date.

e.g

Class Payment
{
date;
amount;
order;
}

Another calss
{
Payment[] pay=new Payment[4];
for(int i=0;i