Name in C# - variables, methods, properties, namespaces, everything which can be named - are precise: they have to match
exactly. That means underscores, the case, and the letters must be identical for two names to "match".
For example, "Count" is not the same as "count", "hello" is not the same as "he11o", and "ItemsCount" is not the same as "Items_Count".
If you are getting the style warning IDE0005 it means that the namespace you referenced in the
using
directive is not actually used in your code: no items you use are from that namespace, or such items are prefixed with that namespace because there are two ways to reference an item external to the current class:
1) With a
using
directive
using MyNamespace;
...
ItemInMyNamespace x = new ItemInMyNamespace();
Or
2) By fully qualifying the name:
...
MyNamespace.ItemInMyNamespace x = new MyNamespace.ItemInMyNamespace();
The two forms are interchangeable: you can have a
using
directive and still fully qualify the name:
using MyNamespace;
...
MyNamespace.ItemInMyNamespace x = new MyNamespace.ItemInMyNamespace();
If that is coming up as an error by the way, then congratulations! You have the VS option "treat warnings as errors" enabled which is an excellent way to catch problems before they get to run time! :thumbsup: