Remove some C# warnings and making the client API safer by declaring nullables

This commit is contained in:
K35
2022-01-11 08:51:35 +00:00
parent d85ed22ea7
commit 5bde88e90b
3 changed files with 3 additions and 3 deletions

View File

@ -174,7 +174,7 @@ export class CSharpTarget extends CompileTarget<{ csharp_namespace: string }> {
? `IList<${toCSharpType(fnc.return.type)}>`
: toCSharpType(fnc.return.type)
: undefined;
a(1, `public async Task<${ret}> ${fnc.name}(${params}) {`);
a(1, `public async Task<${ret}?> ${fnc.name}(${params}) {`);
genParam();
a(
2,