using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace IStation.Model
{
///
/// 枚举值与显示名称的映射关系
///
public class EnumDisplay:JsonList
{
///
///
///
public EnumDisplay() { }
///
///
///
public EnumDisplay(int enumValue,string displayName)
{
this.EnumValue = enumValue;
this.DisplayName = displayName;
}
///
///
///
public EnumDisplay(EnumDisplay rhs)
{
this.EnumValue = rhs.EnumValue;
this.DisplayName = rhs.DisplayName;
}
///
/// 枚举值
///
public int EnumValue { get; set; }
///
/// 显示名称
///
public string DisplayName { get; set; }
///
///
///
public override string ToString()
{
return this.DisplayName;
}
}
}