开发者

No Hashset<T, G> for .Net?

I'm getting back into using MonoTouch, and I tried usin开发者_Python百科g

HashSet<int, List<MyClass>> 

I have a using for System.Collections.Generic, however I'm getting an error on the HashSet declaration, specifically I'm getting

The type or namespace name 'HashSet`2' could not be found. Are you missing a using directive or an assembly reference?

My code is having no issues with List, but adding in the HashSet I get this issue. Anyone have an idea as to the issue?


HashSet<> is a collection class supporting individual items, hence it only has one generic type parameter. The dual parameter mapping is a Dictionary<TKey, TValue>.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜