mirror of
https://github.com/AlexMacocian/SystemExtensions.git
synced 2026-07-17 06:49: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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user