Versions des environnements
Network:
Windows Server 2016
>>Also I find with/endwith overrated, it does not make the code more clear, and also does not really save that much time.
>
>It looks better to me, specially if it's with this.that.other.something.even.deeper, repeating such a sausage makes code unreadable. Of course, if you get into a situation to have such a reference, you're building a kludge anyway. Shorter references usually mean better design.
In such cases we use a local reference var to this.that.other.something.even when accessing a lot on it. Esecially beneficial in cases where Marshalling occors, for instance Excel automation ;-)
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