我有工作项ID
int id =int.Parse(Request.QueryString["ID"],System.Globalization.CultureInfo.CurrentCulture);
WorkItem item= DataManager.DevelopmentProject.Store.GetWorkItem(id);
答案 0 :(得分:2)
item.Fields["Work Item Type"].Value
答案 1 :(得分:-2)
我会用:
var type = item.GetType()
if(type == typeof(Bug))
{
//Do something
}
...