Skip to content

Commit 7998b24

Browse files
author
Fabio Anderegg
authored
write pragma to disable new keyword not required warnings (#1697)
1 parent 92f774a commit 7998b24

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Generator/Generators/CSharp/CSharpSources.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ public override void Process()
8484

8585
GenerateUsings();
8686

87+
WriteLine("#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required");
88+
NewLine();
89+
8790
if (!string.IsNullOrEmpty(Module.OutputNamespace))
8891
{
8992
PushBlock(BlockKind.Namespace);

0 commit comments

Comments
 (0)