Hi Steve,and Sergey,
Thanks for the clarification (I thought if I was using a keyword it would recognise the property).
Blair
Blair,
To add to Sergey's comments...
Simply adding a custom property to a class does not actually add any functionality to the class. It provides a place where you can store (non-persistant) information within an object. You can then refer to that property from code, both within the class itself and from the outside (depending on whether it is public/protected/hidden).
So the class, by itself, does not "understand" what the property is, until you write code that uses the property.
Précédent
Suivant
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