Returns an instance of the repository class, 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
Namespace: MonoSoftware.MonoX.RepositoriesAssembly: MonoX (in MonoX.dll) Version: 5.1.40.5065 (5.1.40.5065)
Syntax
C# |
---|
public static PopularGroupRepository GetInstance() |
Visual Basic |
---|
Public Shared Function GetInstance As PopularGroupRepository |
Visual C++ |
---|
public:
static PopularGroupRepository^ GetInstance() |
F# |
---|
static member GetInstance : unit -> PopularGroupRepository
|
Return Value
Type:
PopularGroupRepositoryInstance of the repository.
See Also