dotnet / dotnet/dotnet-api-docs

Add output for code snippets

Offen
#797 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
.net/prod area-System.Net example-request help wanted Pri2
Vorherrschende Sprache
C#
Sterne
949
Forks
1.7k
Ø Merge
2 T. 19 Std.
Gemergte PRs (30 T.)
52

Beschreibung

In pages like this it would be useful to have the output of the code snippets. For example, it's not obvious that the output of:

adapter.GetPhysicalAddress().ToString();

Will be in the format `AABBCCDDEEFF`. Being a MAC address I would have expected the display representation to be `AA:BB:CC:DD:EE:FF`.

---
#### Document Details

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

* ID: 87d7394a-3f17-943a-fa63-7d0ee3df49c4
* Version Independent ID: 93f4c822-8a80-2147-41c5-a69ca5b722f8
* Content: [NetworkInterface Class (System.Net.NetworkInformation)](https://docs.microsoft.com/en-us/dotnet/api/system.net.networkinformation.networkinterface?view=netframework-4.7.1)
* Content Source: [xml/System.Net.NetworkInformation/NetworkInterface.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.Net.NetworkInformation/NetworkInterface.xml)
* Product: **.net**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **bobdel**

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne mit xml/System.Net.NetworkInformation/NetworkInterface.xml und finde das Beispiel, das adapter.GetPhysicalAddress().ToString() enthält. Sieh dir an, wie der Code in den umliegenden Ausschnitten dokumentiert ist, und füge dann die erwartete Ausgabe für dieses Beispiel hinzu. Bestätige, dass die gerenderte NetworkInterface-API-Seite die Ausgabe übersichtlich anzeigt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
csharp
Bereich
documentation
Issue-Typ
Dokumentation
Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
52/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.