我们如何在接口中实现静态方法...?
public interface ICache
{
//Get item from cache
static object Get(string pName);
//Check an item exist in cache
static bool Contains(string pName);
//Add an item to cache
static void Add(string pName, object pValue);
//Remove an item from cache
static void Remove(string pName);
}
上述界面抛出错误:修饰符'static'对此项无效