mirror of
https://github.com/AlexMacocian/SystemExtensions.git
synced 2026-07-15 14:19:29 +00:00
Mark notifypropertychanged with nullable
This commit is contained in:
@@ -150,7 +150,7 @@ public class NotifyPropertyChangedGenerator : IIncrementalGenerator
|
||||
}
|
||||
}
|
||||
|
||||
var fileSource = generatedSyntax.ToFullString();
|
||||
var fileSource = $"#nullable enable\n{generatedSyntax.ToFullString()}\n#nullable disable";
|
||||
sourceProductionContext.AddSource($"{className}.g", fileSource);
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||
<Authors>Alexandru Macocian</Authors>
|
||||
<Description>Source generators extensions for netstandard2.0.</Description>
|
||||
<Version>0.1.5</Version>
|
||||
<Version>0.1.6</Version>
|
||||
<LangVersion>latest</LangVersion>
|
||||
<EnableNETAnalyzers>true</EnableNETAnalyzers>
|
||||
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
|
||||
|
||||
Reference in New Issue
Block a user