Merge pull request #43246 from HaSa1002/docs-lang-5

Docs: Port code examples to C# (M, N, O, P, Q, R)
This commit is contained in:
Rémi Verschelde
2020-11-16 09:16:18 +01:00
committed by GitHub
14 changed files with 420 additions and 107 deletions
+8 -2
View File
@@ -135,10 +135,16 @@
</return>
<description>
Returns a hexadecimal representation of this array as a [String].
[codeblock]
[codeblocks]
[gdscript]
var array = PackedByteArray([11, 46, 255])
print(array.hex_encode()) # Prints: 0b2eff
[/codeblock]
[/gdscript]
[csharp]
var array = new byte[] {11, 46, 255};
GD.Print(array.HexEncode()); // Prints: 0b2eff
[/csharp]
[/codeblocks]
</description>
</method>
<method name="insert">