Hi Peter.
my team. I made a single project with 3 .vb files, one for the Interface,
the same project. Is this correct?
"Peter Ritchie [C# MVP]" <PRSoCo@newsgroups.nospam> wrote in message
news:11D14017-AA96-495C-8B4F-1495DD75699D@microsoft.com...
> The factory pattern is a form of dependency inversion. This means you're
> attempting to keep something from depending directly on something else.
> There's various levels at which this can happen. The simplest is simply
> one
> class doesn't depend on another and is used indirectly via an interface
> (trading one dependency for another), which is a class-level abstraction.
> If
> that's all you need, you're done. You can extend this dependency
> inversion
> down to other levels by putting the interface and the other class in two
> separate projects and you thus have a module-level abstraction. the
> benefit
> of this level of abstraction is that one class is truly independent of the
> other, you're free to deploy each independently and changes to one don't
> leak
> to the other (where class-level abstraction would require the assembly in
> which both classes reside to be re-deployed should only one be changed).
>
> Maybe if you detail some of your reasons for using the factory pattern we
> can offer some more detailed recommendations.
>
> --
> Browse
http://connect.microsoft.com/VisualStudio/feedback/ and vote.
>
http://www.peterRitchie.com/blog/ > Microsoft MVP, Visual Developer - Visual C#
>
>
> "Erik Cruz" wrote:
>
>> Hi.
>>
>> I don't know if it is a FAQ, but I am reading about the Factory pattern
>> on
>> MSDN. I understand the concepts and the structure of the files involved.
>> But
>> when it comes to .NET, how do I implement this pattern? In order to
>> achieve
>> real abstraction do I need to create separate projects for my client
>> application, my factory class and my implementation class?
>>
>> Thanks !!
>>
>> Erik
>>
>>
>>