Using Pragma to disable warnings
Lot of times, you have variables declared in your class that are never getting used directly and are accessed and their values altered using reflection. In those cases when you build you solution you get a warning saying that this particular field is never used. Here is a simple example that shows warning for first field in Person class for not being used.
An easy way to disable those warnings, is making use of Pragma keyword followed by the warning number that you want to disable which in this case 0169 for un used variables. Once you have disabled the warnings, as a good practice you should reset the warnings back after portion of code that required disabling the warnings. Here is the finished code that makes use of Pragma keyword to disable the warning for unused variable.