Remove some C# warnings and making the client API safer by declaring nullables
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user