yavsc/SalesCatalog/Model/SelectItem.cs

23 lines
344 B
C#
Raw Normal View History

2014-07-16 20:35:03 +02:00
using System;
namespace SalesCatalog.Model
{
public class SelectItem
{
public SelectItem(string t)
{
Value = t;
}
public string Value { get; set; }
public static implicit operator string(SelectItem t)
{
return t.Value;
}
public static implicit operator SelectItem(string t)
{
return new SelectItem(t);
}
}
}