Click here to Skip to main content
15,909,199 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
using System.Collections.Generic.Dictionary;
C#





Error 19 Using the generic type 'System.Collections.Generic.Dictionary<tkey,tvalue>' requires 2 type arguments D:\Factory\factory code\BMI\Adcheck\Adcheck\Controls\Contents\ProductLevelCaptureData.xaml.cs 15 34 Adcheck
Posted

The error message is pretty self explanitory: Dictionary needs two types. For example:
C#
Dictionary<string, int> myDict = ...
Dictionary<string, string> myDict = ...
Dictionary<int, int> myDict = ...

If you are only writing:
C#
Dictionary myDict = ...
Or
C#
Dictionary<string> myDict = ...
Then it isn't going to work.
Without the code, we can't be more specific.

[edit]code block in wrong place[/edit]
 
Share this answer
 
v2
Comments
Member 11229997 25-Nov-14 7:49am    
Do you have TeamViewer? need to show you this code, my brain's overheating now. I've been trying to put it to work but i just cant. please help
OriginalGriff 25-Nov-14 8:26am    
No, and I don't have time to look through your whole app anyway: try posting the relevant code fragments?
Hi Your question was not clear, however i have provide you the example for Dictionary namespace in the C#

http://msdn.microsoft.com/en-

us/library/xfhwa508(v=vs.90).aspx
[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900