Example #1
0
        /// <summary>
        /// 获取指定类型的标签。
        /// </summary>
        public static string GetLabel(this LabelDetailType ldt)
        {
            int value = (int)ldt;

            return(Labels[value]);
        }
Example #2
0
        /// <summary>
        /// 将枚举转换成序号对应的字符串。
        /// </summary>
        public static string GetDbValue(this LabelDetailType ldt)
        {
            int value = (int)ldt;

            return(value.ToString());
        }