Browse Source

Fix nullable warnings in examples

- Added #nullable enable directive to all updated examples
- All examples now build without warnings

Co-authored-by: tig <[email protected]>
copilot-swe-agent[bot] 1 week ago
parent
commit
98c853ea2b

+ 2 - 1
Examples/Example/Example.cs

@@ -1,4 +1,5 @@
-// A simple Terminal.Gui example in C# - using C# 9.0 Top-level statements
+#nullable enable
+// A simple Terminal.Gui example in C# - using C# 9.0 Top-level statements
 
 // This is a simple example application.  For the full range of functionality
 // see the UICatalog project

+ 1 - 0
Examples/FluentExample/Program.cs

@@ -1,3 +1,4 @@
+#nullable enable
 // Fluent API example demonstrating IRunnable with automatic disposal and result extraction
 
 using Terminal.Gui.App;

+ 1 - 0
Examples/RunnableWrapperExample/Program.cs

@@ -1,3 +1,4 @@
+#nullable enable
 // Example demonstrating how to make ANY View runnable without implementing IRunnable
 
 using Terminal.Gui.App;