What namespace does the class class have?

I have a factory class DocumentLoaderFactorythat simply returns an instance that implements the interface IDocumentLoader.

The entire implementation is in the following namespace

Skim.Ssms.AddIn.ActiveFileExplorer.Loader

But what interests me belongs to the namespace DocumentLoaderFactory? I placed the factory class in the namespace *.Loaderat the moment, but it is used from the user control ( ActiveFileWindow) of the parent namespace Skim.Ssms.AddIn.ActiveFileExplorer, as shown below.

What would be the pros and cons of placing a factory method in *.Loaderor is it a parent namespace? I would like to make a decision depending on the pros and cons.




Here is the layout of my project alt text

+5
3

, (), . A factory - , . , . , API.

+8

, factory, factory, factory ( ), ( , ).

, - :

Loader
- DocumentLoaderFactory
- DocumentLoadType
- IDocumentLoader


Loader\Implementation
- NameDocumentLoader
- TypeDocumentLoader
- ConnectionDocumentLoader
- DocumentLoader

, DocumentLoader , - , . , "TreeViewImageIndex", - , .

, , Loader\Implementation .

+4

, **. Loader *, IDocumentLoader.

+2
source

All Articles