Web Log di Adrian Florea

"You know you've achieved perfection in design, not when you have nothing more to add, but when you have nothing more to take away." Antoine de Saint-Exupery
posts - 440, comments - 2715, trackbacks - 3944

My Links

Archives

Post Categories

Image Galleries

.RO Blogs

.RO People

.RO Sites

Blogs

Furls

Links

vinCitori

Design patterns nel Framework .NET - 5.1

Un altro esempio di Strategy (pp. 315-323 in GoF), continuando questa serie di post: 1, 1.1,  2, 3, 3.1, 4, 4.1, 4.2,  5:
- System.Collections.Hashtable fa la Context;
- System.Collections.IHashCodeProvider e System.Collections.IComparer fanno le Strategy;
- le classi che implementano System.Collections.IHashCodeProvider e System.Collections.IComparer fanno le ConcreteStrategy;
- i metodi GetHashCode e rispettivamente Compare fanno gli AlgorithmInterface;
- i metodi protetti GetHash e rispettivamente KeyEquals fanno i ContextInterface

Print | posted on martedì 4 maggio 2004 18:59 | Filed Under [ Pattern Dappertutto ]

Powered by:
Powered By Subtext Powered By ASP.NET