Opentk/Source/Utilities/Graphics/Text/TextBlockComparer.cs

25 lines
476 B
C#

using System;
using System.Collections.Generic;
using System.Text;
namespace OpenTK.Graphics.Text
{
class TextBlockComparer : IComparer<TextBlock>
{
#region Constructors
public TextBlockComparer() { }
#endregion
#region IComparer<TextBlock> Members
public int Compare(TextBlock x, TextBlock y)
{
return x.UsageCount.CompareTo(y.UsageCount);
}
#endregion
}
}