Browse Source

write pragma to disable new keyword not required warnings (#1697)

pull/1699/head
Fabio Anderegg 3 years ago committed by GitHub
parent
commit
7998b24516
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/Generator/Generators/CSharp/CSharpSources.cs

3
src/Generator/Generators/CSharp/CSharpSources.cs

@ -84,6 +84,9 @@ namespace CppSharp.Generators.CSharp @@ -84,6 +84,9 @@ namespace CppSharp.Generators.CSharp
GenerateUsings();
WriteLine("#pragma warning disable CS0109 // Member does not hide an inherited member; new keyword is not required");
NewLine();
if (!string.IsNullOrEmpty(Module.OutputNamespace))
{
PushBlock(BlockKind.Namespace);

Loading…
Cancel
Save