Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>>>We have about 25 properties that we need for some forms.
>>>
>>>Not all properties are needed for each form. Example: one form may need 10 properties and another may need 15 properties.
>>>
>>>We have two options:
>>>
>>>1. Create a class with all the 25 properties and use the ones we need in the instance of that class.
>>>
>>>2. Create and add only needed properties on the fly when we load the form.
>>>
>>>
>>>Any insight which option may be a better choice ?
>Option 1. Why bother with #2? Negligible performance hit and overhead with that few properties.
Not to mention , it's alot easier to maintain.
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