C#CacheHelpers NullReference

时间:2014-08-12 10:02:55

标签: winforms

我在WinForm中使用C#缓存此方法

public static bool IsExist(string key)
{
    return HttpContext.Current.Cache[key] != null;
}

但我有NullReferenceError 返回行。 我怎么解决这个问题? 感谢

0 个答案:

没有答案