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"; }
public static string ToJson(this QuestionDetail self) => JsonConvert.SerializeObject(self, Converter.Settings);