You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
718 B
33 lines
718 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Reflection.Emit;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace ConsoleApp.Menu
|
|
{
|
|
internal class Selector<T>
|
|
{
|
|
private string _line = "";
|
|
|
|
public string Line {
|
|
get => _line;
|
|
private set
|
|
{
|
|
if (string.IsNullOrEmpty(value))
|
|
_line = "no data";
|
|
else
|
|
_line = value;
|
|
}
|
|
}
|
|
public T Item { get; private set; }
|
|
|
|
public Selector(T item, string line = "")
|
|
{
|
|
Line = line;
|
|
Item = item;
|
|
}
|
|
}
|
|
}
|