【发布时间】:2010-11-19 12:15:36
【问题描述】:
谁能告诉我为什么我需要从我的枚举中转换为 Int
switch (Convert.ToInt32(uxView.SelectedValue))
{
case (int)ViewBy.Client:
如果我删除演员表(int),它会失败并说我必须使用演员表。
这是我的枚举,枚举是整数......有人知道吗?
public enum ViewBy
{
Client,
Customer
}
【问题讨论】:
标签: c# enums casting switch-statement