📄 tiankongcontent.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 + -