Tag: sorting

Customized Sort Methods for Lists

Few are the programs that don’t use any kinds of lists. Some lists use the key-value thinking to keep order in the line. Others, like stack and queue, uses insert order as sort order. Some lists though don’t care about the order at all, until you give them a reason to by calling their sort()




Generic Lists and Custom Classes

According to Microsoft generic collections are faster than collections of the object type. Its hard to argue when theory is on their side, a collection that can skip a cast saves time. Fact had another idea though. I’ve actually never been able to create a code using generic collections that is faster than a collection




%d bloggers like this: