Merge pull request #68051 from kleonc/array-fill-docs-note

[Docs] Clarify `Array.fill` behavior when reference type is passed in
This commit is contained in:
Rémi Verschelde 2022-10-31 15:54:40 +01:00
commit 9019c5fbd7
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 0 deletions

View File

@ -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">