1
0
mirror of synced 2024-12-01 02:27:21 +01:00
OpenTaiko/TJAPlayer3/Songs/C曲リストノードComparers/C曲リストノードComparerタイトル.cs
2021-09-21 00:16:38 +02:00

19 lines
553 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System.Collections.Generic;
namespace TJAPlayer3.C曲リストードComparers
{
internal sealed class C曲リストードComparerタイトル : IComparer<C曲リストード>
{
private readonly int _order;
public C曲リストードComparerタイトル(int order)
{
this._order = order;
}
public int Compare(C曲リストード n1, C曲リストード n2)
{
return _order * n1.strタイトル.CompareTo( n2.strタイトル );
}
}
}