Browse Source

c_sharp_differences.rst: clarify System.IO.Path note

(cherry picked from commit 69e1d87816d7ef38cc51ac846fd73d6ef3d2465b)
31 1 year ago
parent
commit
581e110086
1 changed files with 7 additions and 4 deletions
  1. 7 4
      tutorials/scripting/c_sharp/c_sharp_differences.rst

+ 7 - 4
tutorials/scripting/c_sharp/c_sharp_differences.rst

@@ -489,10 +489,13 @@ get_string_from_utf8       StringExtensions.GetStringFromUtf8 (Consider using `S
 hex_encode                 StringExtensions.HexEncode (Consider using `System.Convert.ToHexString`_)
 =========================  ==============================================================
 
-* .NET contains many path utility methods available under the
-  `System.IO.Path`_
-  class that can be used when not dealing with Godot paths (paths that start
-  with ``res://`` or ``user://``)
+.. note::
+
+    .NET provides path utility methods under the
+    `System.IO.Path`_
+    class. They can only be used with native OS paths, not Godot paths
+    (paths that start with ``res://`` or ``user://``).
+    See :ref:`doc_data_paths`.
 
 .. _$ string interpolation: https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/tokens/interpolated
 .. _double.ToString: https://learn.microsoft.com/en-us/dotnet/api/system.double.tostring