问题描述
使用System.Collections.Generic.Dictionary;
using System.Collections.Generic.Dictionary;
错误19使用泛型类型'System.Collections.Generic.Dictionary< tkey,tvalue>'需要2个类型参数D:\ Factory \factory code \ BMI \\ \\Adcheck\Adcheck\Controls\Contents\ProductLevelCaptureData.xaml.cs 15 34 Adcheck
Error19Using the generic type 'System.Collections.Generic.Dictionary<tkey,tvalue>' requires 2 type argumentsD:\Factory\factory code\BMI\Adcheck\Adcheck\Controls\Contents\ProductLevelCaptureData.xaml.cs1534Adcheck
推荐答案
Dictionary<string, int> myDict = ...
Dictionary<string, string> myDict = ...
Dictionary<int, int> myDict = ...
如果你只是写作:
If you are only writing:
Dictionary myDict = ...
或
Or
Dictionary<string> myDict = ...
然后它无法正常工作。
如果没有代码,我们就不能更具体了。
错误位置的代码块[/ edit]
Then it isn't going to work.
Without the code, we can't be more specific.
[edit]code block in wrong place[/edit]
这篇关于我怎样才能解决争论的类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!