using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
namespace Application.DomainModel.Collections
{
public class Couriers<Courier> : List<Courier>
{
public Courier this[string courierCode]
{
get
{
return this.Find(delegate(Courier courier)
{ return (string.Compare(courier.CourierCode, courierCode) == 0); });
}
}
}
public class Courier
{
public string CourierCode { get; set; }
}
}
No comments:
Post a Comment