嗨,由於某種原因,「AndGroup」案件結束的休息是無法到達的。我試圖用goto來解決這個問題,甚至在沒有結果的情況下移動「return true」。誰能幫我嗎?案件不能通過從一個案件標籤到另一個案件
switch (dependant[0])
{
case "AndGroup":
string[] sAndItems =
dependant[10].Split(
new char[] {','}, StringSplitOptions.RemoveEmptyEntries);
foreach (string sAndItem in sAndItems)
{
if (SC_Product.Dependancies.ContainsKey(sAndItem))
{
if (!SC_Product.Dependancies[sAndItem].DependantInstalled)
return false;
}
}
return true;
break;
case "Windows":
我們可以擁有整塊代碼嗎,它是一種方法還是什麼? – 2012-02-20 21:33:56