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; } } }
Tuesday, November 13, 2007
Overriding Index of a Generic List
Subscribe to:
Post Comments (Atom)
Azure Storage Account Types
Defferent Types of Blobs Block blobs store text and binary data. Block blobs are made up of blocks of data that can be managed individually...
-
Why we need asynchronous tasks? Execute a time consuming operations in parallel to the CLR thread which execute the request If you have ...
-
Demo: I was thinking a way to show images before actually uploading them to server. I would say to preview images using javascript. Obv...
No comments:
Post a Comment