This question is locked. New answers and comments are not allowed.
I am enjoying the naming standards enforcement. While annoying, I am not against standards. Anything to help me is always appreciated. I am running into a apparent glitch which I cannot explain. In a c# file entitled "Change.cs", I get the error "C#: Type name does not match file name".
The class is defined with the following snippet....
Given that the file name is in fact the same name as the class name, why am I getting the error? Originally the file name was "CHANGE.cs". I renamed it to match the case of the class without any effect on the error.
The class is defined with the following snippet....
namespace StormDataLayer { [Serializable] [XmlType(Namespace = "urn:Change")] [XmlRoot(Namespace = "urn:Change")] public class Change : IComparer<Change> { // more code
} }
Given that the file name is in fact the same name as the class name, why am I getting the error? Originally the file name was "CHANGE.cs". I renamed it to match the case of the class without any effect on the error.