Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Defensive Programming?
Message
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Defensive Programming?
Divers
Thread ID:
01279830
Message ID:
01279830
Vues:
53
I'm wondering if I should be subclassing some very basic .NET classes to protect against Microsoft changing or discontinuing a class in future versions.

This occurred to me with File IO but it obviously applies to others. Right now Streams are used for reading and writing - if I use new StreamWriter() or new StreamReader() all over my code and Microsoft decides in .NET 5.0 to alter or discontinue the functionality - wow, I'd be in for some work!

I guess if I hadn't had to deal with Microsoft's discontinuation of VFP, I wouldn't be asking this question: what do you guys do or think about the above?

Thanks in advance.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform