I'm trying to do the follwoing but having an error " Cannot implicitly convert type 'string'to 'System.Collections.Generic.Dictionary<string,string>'"
public Dictionary<string,> ReasonErrorCodeList
if (_list.Count> 0)
foreach (KeyValuePair<string,> pair in _list)
string x = _list.ToString();
infoMessage.Text = string.Format("the list is ",x);
infoPanel.Visible = true;
protected global::System.Web.UI.WebControls.Literal infoMessage;
_list is a
Dictionary<string, string> why are you calling
ToString on it? What do you think will that give you?
Also in the setter, you iterate through the dictionary and add items to itself (pointless thing to do).
The error in the
get-method is obvious. You cannot return a
String when the expected return type is a
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)