1
edit
Changes
Strategy
,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>