[.NET] Use collection expressions in docs
As of C# 12 we can now use collection expressions to reduce some boilerplate when initializing collections.
This commit is contained in:
@@ -853,7 +853,7 @@
|
||||
print("a", "b", a) # Prints ab[1, 2, 3]
|
||||
[/gdscript]
|
||||
[csharp]
|
||||
var a = new Godot.Collections.Array { 1, 2, 3 };
|
||||
Godot.Collections.Array a = [1, 2, 3];
|
||||
GD.Print("a", "b", a); // Prints ab[1, 2, 3]
|
||||
[/csharp]
|
||||
[/codeblocks]
|
||||
|
||||
Reference in New Issue
Block a user