dotnet / dotnet/dotnet-api-docs
Does not "clone" Tag property.
- Vorherrschende Sprache
- C#
- Sterne
- 949
- Forks
- 1.7k
- Ø Merge
- 2 T. 19 Std.
- Gemergte PRs (30 T.)
- 52
Beschreibung
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**
Beitragsleitfaden
Rechercherichtung
Öffne xml/System.Windows.Forms/MenuItem.xml und suche den Eintrag der CloneMenu-Methode. Überprüfe die vorhandene Dokumentation anhand des gemeldeten Tag-Verhaltens; abgeschlossen ist die Aufgabe, wenn die Dokumentation ausdrücklich angibt, welche Member kopiert werden und welche nicht, einschließlich Tag.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- csharp
- Bereich
- documentation
- Issue-Typ
- Dokumentation
- Schwierigkeit
- 1/5
- Geschätzter Aufwand
- Unter einer Stunde
- Aktivitätsstatus
- Veraltet
- Klarheit
- Klar beschrieben
- Anfängerfreundlichkeit
- 35/100