object? GoNull() {
return null;
}As IL:
.method assembly hidebysig static
object '<$>g__GoNull|0_0' () cil managed | using System; | |
| using System.Collections.Generic; | |
| namespace Proj | |
| { | |
| public static class RuSpellingExtensions | |
| { | |
| private static readonly Dictionary<string, string[]> spellDb = new Dictionary<string, string[]>() | |
| { | |
| //1 2 10 |
| using System.Text; | |
| namespace ZipFilesEncodingFixer | |
| { | |
| public static class EncodingDetector | |
| { | |
| static EncodingDetector() | |
| { | |
| Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); | |
| } |
| # For example 3919 will be reversed to 9193 | |
| reverse = 0 | |
| number = int(input(“Please input a number to be reversed.\n”)) | |
| while (number > 0): | |
| lastDigit = number % 10 | |
| reverse =(reverse*10) + lastDigit | |
| number = number // 10 | |
| print(reverse) |
| using System.Net.Http.Json; | |
| public class ShopClient | |
| { | |
| private readonly string _host; | |
| private readonly HttpClient _httpClient; | |
| public ShopClient(string? host = null, HttpClient? httpClient = null) | |
| { | |
| _httpClient = httpClient ?? new HttpClient(); |
| using Microsoft.AspNetCore.Mvc; | |
| using Microsoft.AspNetCore.Mvc.Formatters; | |
| using Microsoft.AspNetCore.Mvc.Infrastructure; | |
| namespace Services; | |
| public class ResponseDefaultFormatterService | |
| { | |
| private readonly IHttpResponseStreamWriterFactory _streamWriterFactory; | |
| private readonly OutputFormatterSelector _formatterSelector; |
| public class AppAuthFilterAttribute : Attribute, IAuthorizationFilter, IAppOrderedFilter | |
| { | |
| public FilterOrder Order { get; set; } | |
| public void OnAuthorization(AuthorizationFilterContext context) | |
| { | |
| //some logic... | |
| } | |
| } |
Студент приходит на экзамен. Ему достаётся случайный вопрос. Вопросы бывают сложности Junior, Middle, Senior. Ответ на Junior даёт 3 балла, ответ на Middle даёт 4 балла, ответ на Senior даёт 5 баллов. Вопросы уровня Senior можно пропустить (до 2 раз). Вопросы уровня Junior и Middle пропустить нельзя, это равносильно провалу ответа (0 баллов). Ответ хотя бы на 1 вопрос из категории Junior обязателен. Частичный ответ даёт частичную оценку.