I have a series of class variables that are assigned to through
reflection. Every time I compile one of these classes I get this
warning :
warning CS0649: Field 'xxx' is never assigned to, and will always have
its default value null
Is there any way I can supress this warning? I have a custom attribute
applied to each field, which the binder uses, and am explicitly
assigning to null. I would like to remove the '=null;' if I can.
[BindMe] protected TextBox theText = null;
ASP.Net pages do not have this problem when you place controls on them,
so I think this may be possible. The only post addressing this
directly is from 2002, and in this group.
I was hoping for something like [CompilerDisableWarning(649)] that I
could apply to my custom attributes.
Thanks for any help,
- Andrew Backer