dotnet / dotnet/dotnet-api-docs

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

Aperta
#1,455 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
area-System.Runtime dotnet-api/prod Pri2 untriaged
Lingua principale
C#
Stelle
949
Fork
1.7k
Merge medio
2g 19h
PR unite (30g)
52

Descrizione

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**

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Aggiorna la documentazione di Array.Resize(T[], Int32) in xml/System/Array.xml. Inizia leggendo le osservazioni esistenti su Array.Resize, quindi chiarisci che ridimensionare la variabile specificata non modifica un'altra variabile che fa riferimento all'array originale. Il lavoro è completato quando il comportamento dei riferimenti è esplicito e la pagina dell'API viene visualizzata correttamente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
csharp
Ambito
documentation
Tipo di issue
Documentazione
Difficoltà
1/5
Tempo stimato
Meno di un'ora
Stato di attività
Ferma
Chiarezza
Specificata chiaramente
Idoneità per principianti
55/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.