B Ben Voigt Jan 24, 2007 #2 zxli said: Hi all, Is there an UNREFERENCED_PARAMETER alike macro in C#? Click to expand... 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++).
zxli said: Hi all, Is there an UNREFERENCED_PARAMETER alike macro in C#? Click to expand... 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++).