public string Stringify(GenericDesc contractDesc) { return ($@"{_jsDoc.Format(contractDesc)}{Export}interface I{_options.ContractNameTempate(contractDesc)}<{GenericargsStringify(contractDesc.Arguments)}> {{ {string.Join(Environment.NewLine + Environment.NewLine, contractDesc.Fields.Select((field) => Utils.Ident(_fieldStringify.Stringify(field), _options.IdentSize)))} }}"); }
public string Stringify(GenericDesc genericDesc) { return(_template.Render(_contextMaker.Make(new { Genericargs = GenericargsStringify(genericDesc.Arguments), genericDesc.Description, genericDesc.IsDeprecated, genericDesc.DeprecationCause, ClassName = _options.ContractNameTempate(genericDesc), Fields = genericDesc.Fields.Select(_fieldStringify.Stringify), genericDesc.CanBePartial, }))); }