UNREFERENCED_PARAMETER for C#?

  • Thread starter Thread starter zxli
  • Start date Start date
Z

zxli

Hi all,

Is there an UNREFERENCED_PARAMETER alike macro in C#?

Thanks
zxli
 
zxli said:
Hi all,

Is there an UNREFERENCED_PARAMETER alike macro in C#?

There are no macros in C#, only preprocessor variables.

I don't think C# generates warnings for unused parameters, only unused local
variables. If it does, try giving the parameter a type but no variable name
(that eliminates the warning in C/C++).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top