Required designer variable.

  • Thread starter Thread starter Rene
  • Start date Start date
R

Rene

I don't know why, but depending on I have no idea, some time the "required
designer variable" automatically inserted on my classes will vary between:

System.ComponentModel.Container components = null
System.ComponentModel.IContainer components;

The difference is on the Container & IContainer one has an "I" and the other
does not, the other thing is that one is set to null and the other is not.
Why do I get different ones? What's the difference? I normally remove the
IContainer and replace it with the Container one because I keep getting
warnings that the variable is never assigned to, and will always have its
default value null

Am I looking for trouble?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top