18 lines
565 B
C#
18 lines
565 B
C#
using System.ComponentModel;
|
|
|
|
namespace CoreUnit.Common
|
|
{
|
|
public class CustomSortedDisplayName : DisplayNameAttribute
|
|
{
|
|
private const char NonPrintableChar = '\t';
|
|
|
|
public CustomSortedDisplayName(string displayName,
|
|
ushort displayNamePos,
|
|
ushort totalDisplayNames)
|
|
: base(displayName.PadLeft(displayName.Length + (totalDisplayNames - displayNamePos),
|
|
CustomSortedDisplayName.NonPrintableChar))
|
|
{
|
|
}
|
|
}
|
|
}
|