I am trying to clear some warnings in my C # project, and I have a couple of them:
Warning 1 The field 'Namespace.Class.components' is assigned but its value is never used E:\WorkspacePath\Sources\Project\WorkItems\Class.designer.cs
If I look at the code, I can find:
/// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null;
I read that this is really used by the designer, but he doesn't seem to use it at all. I would immediately delete this line, if not for the comment. Commenting that the line didn't seem to change the designer’s behavior, I could still open the menu without any problems.
So my question is: is it safe to delete this line when I have a warning at compile time, or is this warning pretty "normal"? What should I do with this? Am I forgetting to do something with this component?
Thank you for your help.
source share