@using Entities.Contracts @using Entities.DTO @using TechHelper.Client.Exam @Index @((MarkupString)Question.Title.Replace("\n", "
")) @if (Score > 0) { (@Score 分) }
@if (!string.IsNullOrEmpty(Question.Options)) {
@foreach (var option in Question.Options.ParseOptionsFromText()) { var tempOption = option;

@((MarkupString)(tempOption.Replace("\n", "
")))

}
}
@code { [Parameter] public QuestionDto Question { get; set; } = new QuestionDto(); [Parameter] public AssignmentStructType Type { get; set; } = AssignmentStructType.Question; [Parameter] public byte Index { get; set; } = 0; [Parameter] public byte Score { get; set; } = 0; [Parameter] public string Class { get; set; } = string.Empty; [Parameter] public int Elevation { get; set; } }