⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tiankongcontent.cs

📁 本在线考试系统采用了面向对象的分析和设计
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;

namespace ExaminationSystem.BLL.Domain
{
    public class TianKongContent:QuestionContent
    {
        public override string QuestionType
        {
            get { return "TianKong"; }
        }
        public static bool IsBlankAnswerMatch(string content ,string answer)
        {
            Regex rx = new Regex(@"\$_\S_\$", RegexOptions.Compiled | RegexOptions.IgnoreCase);
            MatchCollection matches = rx.Matches(content);
            string[] answers = answer.Split(new char[] { ',' });

            if (answers.Length != matches.Count)
                return false;
            return true;
        }
    }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -