I have some fields in a C# class which I initialize using reflection. The compiler shows CS0649 warning for them:
Field foo\' is never assigned
foo\' is never assigned
I believe it's worth noting the warning can also be suppressed by using inline initialization. This clutters your code much less.
public class MyClass { // field declarations for which to disable warning private object foo = null; // rest of class }