Re: UNREFERENCED_PARAMETER for C#?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




"zxli" <imzxli@xxxxxxxxxxx> wrote in message
news:%232tgK%233PHHA.3624@xxxxxxxxxxxxxxxxxxxxxxx
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++).


Thanks
zxli



.