MicrosoftDocs / winrt-api

WinRT reference content for developing Microsoft Universal Windows Platform (UWP) apps
Creative Commons Attribution 4.0 International
230 stars 494 forks source link

Examples in the C++ docs are for C# #2406

Closed minfrin closed 1 year ago

minfrin commented 1 year ago

In the C++ docs, the examples are for C#.


Document Details

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

stevewhims commented 1 year ago

Thanks, @minfrin. The language drop-down on API reference topics controls only the language used in the syntax block. And in this case it's functioning correctly. That picker isn't meant to pick between languages for Examples sections. Most topics have only C# code examples, and this is one of them.

To determine the C++ equivalent code in this case, you could have a look at the C++/WinRT docs, especially Move to C++/WinRT from C#.

Thanks! -Steve