Skip to content

MarshalOfficial/csharp-prototype-pattern

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C# Prototype

The Prototype design pattern specifies the kind of objects to create using a prototypical instance, and create new objects by copying this prototype.

Frequency of use: medium

Participants:

The classes and objects participating in this pattern include:

  • Prototype (ColorPrototype):
    -- declares an interface for cloning itself
  • ConcretePrototype (Color):
    -- implements an operation for cloning itself
  • Client (ColorManager):
    -- creates a new object by asking a prototype to clone itself

Releases

No releases published

Packages

No packages published

Languages