Questions et réponses pour le using :

"using" est un mot-clé dans certains langages de programmation (C ++, C #, VB.NET, Haxe)

10
votes
Avoir ce code: using (BinaryWriter writer = new BinaryWriter(File.Open(ProjectPath, FileMode.Create))) { //save something here } ...

9
votes
foreach (Abbreviation abbreviation in abbreviations) { test = test.Replace(abbreviation.ShortName, abbreviation.LongName); } result = test; ...

9
votes
pour utiliser COUT code>, j'ai besoin de spécifier les deux: using namespace std; ...

9
votes
dans vb.net, vous pouvez faire quelque chose comme ce qui suit sans aucun problème ... ignore simplement le fait qu'il s'agit d'une catégorie assez inutile: -) xxx ...