'#pragma warning disable' in Version 3.0

Hi, I am using ReSharper to automatically create the following pragma:

#pragma warning disable SuggestBaseTypeForParameter

#pragma warning restore SuggestBaseTypeForParameter

But I get a warning that the number is invalid, which it is because a number is expected for the warning list. Should 'SuggestBaseTypeForParameter' be defined etc.

Any ideas

Thanks

Julian

2 comments
Comment actions Permalink

Hello Julian,

To suppress VS warning about ReSharper #pragmas, add "1692" to the "Suppress
warnings" project property (build tab)

Oleg Stepanov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Hi, I am using ReSharper to automatically create the following pragma:

#pragma warning disable SuggestBaseTypeForParameter

#pragma warning restore SuggestBaseTypeForParameter

But I get a warning that the number is invalid, which it is because a
number is expected for the warning list. Should
'SuggestBaseTypeForParameter' be defined etc.

Any ideas

Thanks

Julian



0
Comment actions Permalink

Thanks, that worked OK

Julian

0

Please sign in to leave a comment.