From ae1ed6dd4cf575b549bd44b04124e60aceccee04 Mon Sep 17 00:00:00 2001 From: "Simon G." Date: Wed, 3 Dec 2025 09:03:53 +0100 Subject: [PATCH] - enable nullable explicitly --- LightweightIocContainer.FactoryGenerator/FactoryGenerator.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/LightweightIocContainer.FactoryGenerator/FactoryGenerator.cs b/LightweightIocContainer.FactoryGenerator/FactoryGenerator.cs index 7ce3184..2d0b59d 100644 --- a/LightweightIocContainer.FactoryGenerator/FactoryGenerator.cs +++ b/LightweightIocContainer.FactoryGenerator/FactoryGenerator.cs @@ -161,6 +161,9 @@ public class FactoryGenerator : IIncrementalGenerator stringBuilder.AppendLine(GENERATED_FILE_HEADER); stringBuilder.AppendLine(); + + stringBuilder.AppendLine("#nullable enable"); + stringBuilder.AppendLine(); stringBuilder.AppendLine("using LightweightIocContainer;"); stringBuilder.AppendLine();