I'm trying to set a dictionary in my interface, but it's saying that the main class did not implement the dictionary.
Interface.cs
public interface IItem
{
event Action<string, string, string, string, string, string, string, string, string, string, string> ItemToDataGrid;
void Search();
int SearchType { get; set; }
Dictionary<string, string> SearchKey();
}
Principal.cs
public class Item : IItem
{
public int _SearchType;
public int SearchType
{
get
{
return this._SearchType;
}
set
{
this._SearchType = value;
}
}
Dictionary<string, string> searchKey = new Dictionary<string, string>()
{
{ "Item", "" },
{ "Character", "" },
};
Am I doing something wrong?