dotnet / dotnet/dotnet-api-docs

Clarify that Resize will NOT affect other variables pointing to the same array.

オープン
#1,455 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
area-System.Runtime dotnet-api/prod Pri2 untriaged
主要言語
C#
スター
949
フォーク
1.7k
平均マージ
2日 19時間
マージ済み PR(30日)
52

説明

Its essential to understand that Resize ONLY affects the SPECIFIC VARIABLE passed in. That is, if you have two variables "a" and "b" pointing to an array, and you use Resize to change "a", "b" will still be pointing to the ORIGINAL ARRAY.

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: 31b6ec8a-67ad-c2d5-debe-0d161eb2c29b
* Version Independent ID: 71d04a0b-379b-17e9-796d-090fb8de7aad
* Content: [Array.Resize(T\[\], Int32) Method (System)](https://docs.microsoft.com/en-us/dotnet/api/system.array.resize?redirectedfrom=MSDN&view=netframework-4.7.2#System_Array_Resize__1___0____System_Int32_)
* Content Source: [xml/System/Array.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System/Array.xml)
* Product: **dotnet-api**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnetcontent**

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

xml/System/Array.xml の Array.Resize(T[], Int32) のドキュメントを更新します。まず Array.Resize の既存の remarks を読み、指定した変数のサイズを変更しても、元の配列を参照している別の変数は変更されないことを明確にします。参照の動作が明示され、API ページが正しくレンダリングされれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
csharp
領域
documentation
issue の種類
ドキュメント
難易度
1/5
見積もり時間
1時間未満
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
55/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。