Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions internal/cmd/testdata/success_csharp.golden
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// AUTOMATICALLY GENERATED BY OPENFEATURE CLI, DO NOT EDIT.
#nullable enable
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
Expand Down
1 change: 1 addition & 0 deletions internal/generators/csharp/csharp.tmpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// AUTOMATICALLY GENERATED BY OPENFEATURE CLI, DO NOT EDIT.
#nullable enable

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This directive enables nullable reference types in C#. It's good practice to include a comment explaining why this is necessary for maintainability.

Consider adding a brief comment to explain the purpose of this directive.

#nullable enable // Enable nullable reference types to ensure null-safety in generated code

using System;
using System.Collections.Generic;
using System.Threading.Tasks;
Expand Down
1 change: 1 addition & 0 deletions test/csharp-integration/OpenFeature.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// AUTOMATICALLY GENERATED BY OPENFEATURE CLI, DO NOT EDIT.
#nullable enable
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
Expand Down
1 change: 1 addition & 0 deletions test/csharp-integration/OpenFeature.g.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// AUTOMATICALLY GENERATED BY OPENFEATURE CLI, DO NOT EDIT.
#nullable enable
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
Expand Down
1 change: 1 addition & 0 deletions test/csharp-integration/expected/OpenFeature.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// AUTOMATICALLY GENERATED BY OPENFEATURE CLI, DO NOT EDIT.
#nullable enable
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
Expand Down
1 change: 1 addition & 0 deletions test/csharp-integration/expected/OpenFeature.g.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// AUTOMATICALLY GENERATED BY OPENFEATURE CLI, DO NOT EDIT.
#nullable enable
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
Expand Down