summaryrefslogtreecommitdiff
path: root/doc/classes/DirAccess.xml
diff options
context:
space:
mode:
authorRaul Santos <raulsntos@gmail.com>2022-09-19 18:42:31 +0200
committerRaul Santos <raulsntos@gmail.com>2022-09-19 18:46:44 +0200
commit95393c310dfbc4d9c6e60de1b0339fc16669b8cd (patch)
treefa03e918aaedad4ced8f89e4467079f26d6e9249 /doc/classes/DirAccess.xml
parent6f5704d86f95171ba8b6b2ac9f56e284c4d35d7a (diff)
Improve C# documentation for FileAccess and DirAccess
- Adds using statements to C# examples to ensure the resources are freed after usage - Adds explanation about the importance of disposing the FileAccess now that we don't have a close method
Diffstat (limited to 'doc/classes/DirAccess.xml')
-rw-r--r--doc/classes/DirAccess.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/classes/DirAccess.xml b/doc/classes/DirAccess.xml
index ddb98030eb..de2e32b17b 100644
--- a/doc/classes/DirAccess.xml
+++ b/doc/classes/DirAccess.xml
@@ -27,7 +27,7 @@
[csharp]
public void DirContents(string path)
{
- var dir = DirAccess.Open(path);
+ using var dir = DirAccess.Open(path);
if (dir != null)
{
dir.ListDirBegin();