From 221a89f2ef5d3310aafeec7a275da3c5a3b1125a Mon Sep 17 00:00:00 2001 From: kleonc <9283098+kleonc@users.noreply.github.com> Date: Sun, 30 Oct 2022 13:36:14 +0100 Subject: [PATCH] Docs Clarify `Array.fill` behavior when reference type is passed in --- doc/classes/Array.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/classes/Array.xml b/doc/classes/Array.xml index 0f76639caf1..b8e0ac0c2a9 100644 --- a/doc/classes/Array.xml +++ b/doc/classes/Array.xml @@ -272,6 +272,7 @@ array.Fill(0); // Initialize the 10 elements to 0. [/csharp] [/codeblocks] + [b]Note:[/b] If [param value] is of a reference type ([Object]-derived, [Array], [Dictionary], etc.) then the array is filled with the references to the same object, i.e. no duplicates are created.