Change "nullable disable" to "nullable restore" (#65)

* Remove "#nullable disable" and the end of generated cs file

* restore

* .
This commit is contained in:
Stef Heyenrath
2023-10-10 19:38:40 +02:00
committed by GitHub
parent 0c19988fd2
commit 764d9d4f58
32 changed files with 42 additions and 44 deletions
@@ -70,7 +70,7 @@ internal class PartialInterfacesGenerator : BaseGenerator, IFilesGenerator
// </auto-generated>
//----------------------------------------------------------------------------------------
{(SupportsNullable ? "#nullable enable" : string.Empty)}
{SupportsNullable.IIf("#nullable enable")}
using System;
{namespaceStart}
@@ -85,7 +85,7 @@ using System;
{GenerateEvents(classSymbol, proxyData.ProxyBaseClasses)}
}}
{namespaceEnd}
{(SupportsNullable ? "#nullable disable" : string.Empty)}";
{SupportsNullable.IIf("#nullable restore")}";
}
private string GenerateProperties(ClassSymbol targetClassSymbol, bool proxyBaseClasses)