38 lines
724 B
C#
38 lines
724 B
C#
namespace MAX.Core.Commons;
|
|
|
|
/// <summary>
|
|
/// 公共Value
|
|
/// </summary>
|
|
/// <typeparam name="TValue"></typeparam>
|
|
public class CommonValue<TValue>
|
|
{
|
|
public CommonValue() { }
|
|
public CommonValue(TValue value)
|
|
{
|
|
Value = value;
|
|
}
|
|
public TValue Value { get; set; }
|
|
}
|
|
/// <summary>
|
|
/// 公共TextValue
|
|
/// </summary>
|
|
/// <typeparam name="TValue"></typeparam>
|
|
public class CommonTextValue<TValue> : CommonValue<TValue>
|
|
{
|
|
public string Text { get; set; }
|
|
}
|
|
/// <summary>
|
|
/// 公共TextValue
|
|
/// </summary>
|
|
public class CommonTextValue : CommonTextValue<string>
|
|
{
|
|
|
|
}
|
|
/// <summary>
|
|
/// 默认公共键值对 Key Value
|
|
/// </summary>
|
|
public class CommonKeyValue : CommonValue<string>
|
|
{
|
|
public string Key { get; set; }
|
|
}
|