diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-10-31 15:54:40 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-10-31 15:54:40 +0100 |
commit | 9019c5fbd76276617ce1c1df98d3d5372db9ffd5 (patch) | |
tree | 3275667f8df78e7dbbdfd324cf6085ca488360e9 /doc | |
parent | 19195bec2d768a3f01bedba4f3fa7ed53593d8f9 (diff) | |
parent | 221a89f2ef5d3310aafeec7a275da3c5a3b1125a (diff) |
Merge pull request #68051 from kleonc/array-fill-docs-note
[Docs] Clarify `Array.fill` behavior when reference type is passed in
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/Array.xml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/classes/Array.xml b/doc/classes/Array.xml index 0f76639caf..b8e0ac0c2a 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. </description> </method> <method name="filter" qualifiers="const"> |