Changes

Jump to: navigation, search

Strategy

232 bytes added, 13:50, 8 February 2007
no edit summary
<br><pre>
class CoolComparer : IComparer
{
#region IComparer Members
 
public int Compare(object x, object y)
{
// TODO: implementation
return 0;
}
 
#endregion
 
}
 
class SlowComparer: IComparer
{
#region IComparer Members
IComparer myComparer = new CoolComparer();
IComparer myComparer = new SlowComparer();
items.Sort(myComparer); // Delegate Comparison Method
</pre>
1
edit

Navigation menu