Instance provider used for the instantiation of the object that uses encapsulated creation methodology.
Namespace: MonoSoftware.CoreAssembly: MonoSoftware.Core (in MonoSoftware.Core.dll) Version: 1.0.40.669 (1.0.40.669)
Syntax
C# |
---|
public static class InstanceProvider |
Visual Basic |
---|
Public NotInheritable Class InstanceProvider |
Visual C++ |
---|
public ref class InstanceProvider abstract sealed |
F# |
---|
[<AbstractClassAttribute>] [<SealedAttribute>] type InstanceProvider = class end |
Remarks
All methods should returns an instance of the object, wraps the constructor to allow for encapsulated instatiation, so the logic in he constructor can be changed without changing the client code.
Reference: http://www.netobjectives.com/ezines/ez0405NetObj_PerspectivesOfUseVsCreationInOODesign.pdf