Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Network:
Windows 2008 Server
Sort of my point - you don't need to know. You ask for an instance of IEnumerator and it supplies one. IEnumerator only implements a single property and a couple of methods but I'd still regard this as an example of a simple (but essential) factory.
Anyway I guess we're now discussing .NET examples rather than VFP so it doesn't really belong here. And I'm happy to not agree on a term that lacks a formal definition....
>I have no idea how it is implemented.
>
>>Why do the items instantiated need to be 'complex' ?
>>So you would not agree that, for example, in .NET ArrayList.GetEnumerator() is a factory method ?
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement