mirror of
https://github.com/netchx/netch.git
synced 2026-03-14 17:43:18 +08:00
18 lines
287 B
C#
18 lines
287 B
C#
using Netch.Utils;
|
|
|
|
namespace Netch.Models;
|
|
|
|
internal class TagItem<T>
|
|
{
|
|
private readonly string _text;
|
|
|
|
public TagItem(T value, string text)
|
|
{
|
|
_text = text;
|
|
Value = value;
|
|
}
|
|
|
|
public string Text => i18N.Translate(_text);
|
|
|
|
public T Value { get; }
|
|
} |