0

Ref: "Use the new keyword if hiding was intended" warning

This time, the warning needs to go away without editing file to add the new keyword.

Why? Generated derived class.

Community
  • 1
  • 1
Joshua
  • 40,822
  • 8
  • 72
  • 132

1 Answers1

3

Just add a #pragma warning disable 108 at the top of the file where you want the warning disabled.

Eli Arbel
  • 22,391
  • 3
  • 45
  • 71