Exemple #1
0
        public TemplateOpt(QuestionDetail detail)
        {
            _detail     = detail;
            _csharpCode = BuilderCSharpCodeModel(detail.CSharpCodeTxt);
            dynamic cmd = new Cmd();

            _author             = cmd.git.config(get: "user.name");
            _algorithmsPath     = $"../../Algorithms/{_detail.QuestionName}.cs";
            _algorithmsTestPath = $"../../AlgorithmsTest/{_detail.QuestionName}Test.cs";
        }
Exemple #2
0
 public static string ToJson(this QuestionDetail self) => JsonConvert.SerializeObject(self, Converter.Settings);