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 - 928, trackbacks - 120

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 15.59 | Filed Under [ Pattern Dappertutto ]

Feedback

Gravatar

# re: Patterns in .NET: Citing the Strategy pattern

30/04/2005 15.05 | Living .NET...

Post Comment

Title  
Name  
Email
Url
Comment   
Please add 6 and 7 and type the answer here:

Powered by: