La méthode System.Collections.Dictionary.Clear en C# supprime tous les éléments d'un dictionnaire. Cela permet de réinitialiser le dictionnaire pour le vider complètement, de sorte qu'il ne contient plus aucune clé-valeur. L'appel à cette méthode est utile lorsqu'il est nécessaire de libérer de l'espace mémoire occupé par le dictionnaire ou de le réinitialiser pour une nouvelle utilisation.
C# (CSharp) System.Collections Dictionary.Clear - 30 exemples trouvés. Ce sont les exemples réels les mieux notés de System.Collections.Dictionary.Clear extraits de projets open source. Vous pouvez noter les exemples pour nous aider à en améliorer la qualité.