Prototype Pattern Code Review
Define the PrototypeManager Object
Code Review
- Prototype Pattern Code Review: Define the Prototype Interface and Handler Objects
- Prototype Pattern Code Review: Define the PrototypeManager Object
- Prototype Pattern Code Review: Use the Prototype Pattern
Code Walkthrough
The PrototypeManager class (object) creates a collection of Prototype objects.
class PrototypeManager : IPrototype
{
public Dictionary<String, ProtoType> prototypes = new Dictionary<String, ProtoType> {
{"Germany", new ProtoType("Germany", "Berlin", "German")},
{"Italy", new ProtoType("Italy", "Rome", "Italian")},
{"Australia", new ProtoType("Australia", "Canberra", "English")}
};
}
Printer Friendly Version
Add to Favourites
DotNet Kicks
Digg
del.icio.us
Live Favourites
ma.gnolia
reddit
Slashdot
Technorati
Yahoo!