Possible Duplicate:
Inconsistent accessibilityC#返回列表 - 可訪問性不一致
當我嘗試在我的方法之一返回List<MyType>
的東西從另一個類調用它,它給我以下錯誤:
可訪問性不一致:返回類型System.Collections.Generic.List<MyType>
不方便訪問方法MyMethod(string, string, string, string, string, string, string, string, string, string, string)
有什麼想法在這裏做什麼?
什麼是通用型通常發生列表?如果你提供代碼 –
會很好,因爲我忘了聲明類MyType public。謝謝。 – user1314075