dotnet / dotnet/dotnet-api-docs

Does not "clone" Tag property.

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

Descrizione

The term "Clone" as it is used everywhere else in the .NET framework implies that at least a shallow copy of all data members is performed. I therefore expected "CloneMenu()" to perform a shallow copy of all members plus whatever internal housekeeping needed to be done specific to a menu item. However, the "Tag" member does NOT get copied and is null in the resulting MenuItem. If a method with "Clone" in the name does not perform a complete shallow copy then the documentation should explicitly state which members will and will not be copied for clarity.

---
#### Document Details

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

* ID: 73d94fdf-6c8a-2776-d7e0-9a4c8df93f44
* Version Independent ID: 431ec54c-84de-07bb-0219-611081189303
* Content: [MenuItem.CloneMenu Method (System.Windows.Forms)](https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.menuitem.clonemenu?redirectedfrom=MSDN&view=netframework-4.7.2#System_Windows_Forms_MenuItem_CloneMenu)
* Content Source: [xml/System.Windows.Forms/MenuItem.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.Windows.Forms/MenuItem.xml)
* Product: **dotnet-api**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnetcontent**

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Apri xml/System.Windows.Forms/MenuItem.xml e individua la voce del metodo CloneMenu. Esamina la documentazione esistente rispetto al comportamento segnalato di Tag; il lavoro è completato quando la documentazione dichiara esplicitamente quali membri vengono copiati e quali no, incluso Tag.

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
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.