I've created a List as a property of the class, and want to set the Key/Value pairs when defining the List. I was originally using a structure but realized it's probably not the ideal solution so I changed it to a List. The problem is I'm getting an error with the syntax.
Any ideas?
private List<KeyValuePair<String,String>> formData = new List<KeyValuePair<String, String>>[] { new KeyValuePair<String, String>("lsd",""), new KeyValuePair<String, String>("charset", "") };
[]pair at the end of the first line (it could also be the;char after the first KeyValuePair, it should be a,. Can you provide the error you're getting, save us copying and pasting your code?