Joshua
Joshua

Reputation: 43300

How do I turn off the warning "use the new keyword if hiding was intended"?

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.

Upvotes: 0

Views: 788

Answers (1)

Eli Arbel
Eli Arbel

Reputation: 22739

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

Upvotes: 3

Related Questions