I built a web api controller that handles file operations requested by the client.
I initially created two classes in the same file under the namespace GNC_Corp.FileUpload. (GNC_Corp is the project name and root namespace)
The two classes were FileUploadController and FileOperations.
I then decided to extract the FileOperations class into a separate file under the App_Code directory.
This all compiled successfully ( I had to set the 'Build Action' to 'compile' for it to recognise theFileOperations class.
When I go into Class View, it now shows GNC_Corp in two separate sections, each with aFileUpload namespace and a FileOperations class.
One of them also has the FileUploadController class.
I do not understand why I have two GNC_Corp sections, each with a FileUpload namespace and aFileOperations class.
↧
Class View - Namespace apperaing in two places
↧