Exams/Utils/ECache.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Caching;
using Newtonsoft.Json;
using System.IO;
using Exams.Models;
using Exams.Repository;
namespace Exams.Utils
{
public class ECache
{
private static string _temppath = null;
public static string TempPath {
get {
if (_temppath == null) {
_temppath = HttpContext.Current.Server.MapPath("~/temp/");
}
return _temppath;
}
}
private static ExamConfig _examconfig = null;
public static ExamConfig ExamConfig
{
get
{
if (_examconfig == null)
{
ConfigRepository _config = new ConfigRepository();
_examconfig = _config.GetModel();
}
return _examconfig;
}
set
{
_examconfig = null;
}
}
private static List<DanXuanQuestion> _danxuan = null;
public static List<DanXuanQuestion> DanXuan {
get {
if (_danxuan == null) {
_danxuan = new DanXuanRepository().AllQuestions();
}
return _danxuan;
}
set {
_danxuan = null;
}
}
private static List<Tuple<int, string>> _company = null;
public static List<Tuple<int, string>> Company
{
后面还有 31 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
