{"id":91631,"date":"2015-09-09T07:00:00","date_gmt":"2015-09-09T21:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/20150909-00\/?p=91631\/"},"modified":"2019-03-13T12:19:20","modified_gmt":"2019-03-13T19:19:20","slug":"20150909-00","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20150909-00\/?p=91631","title":{"rendered":"Raymond&#8217;s Windows Universal Samples API concordance"},"content":{"rendered":"<p>If you want to find an SDK sample that uses a particular feature of the Universal Windows Platform, you can try my Windows Universal Samples API concordance on <a HREF=\"http:\/\/oldnewthing.github.io\/Windows-universal-samples\/\">http:\/\/oldnewthing.github.io\/Windows-universal-samples\/<\/a>. Expand the tree view to find the thing you&#8217;re interested in, and it will provide links to every line of C# code that uses it. <\/p>\n<p>The following deep links are also supported: <\/p>\n<ul>\n<li>Link to a namespace: <a HREF=\"http:\/\/oldnewthing.github.io\/Windows-universal-samples\/?Windows.Devices.Geolocation\">http:\/\/oldnewthing.github.io\/Windows-universal-samples\/?Windows.Devices.Geolocation<\/a> \n<li>Link to a class, structure, or enumeration: <a HREF=\"http:\/\/oldnewthing.github.io\/Windows-universal-samples\/?Windows.Globalization.Calendar\">http:\/\/oldnewthing.github.io\/Windows-universal-samples\/?Windows.Globalization.Calendar<\/a> \n<li>Link to a property or event or enumerated value: <a HREF=\"http:\/\/oldnewthing.github.io\/Windows-universal-samples\/?Windows.Graphics.Display.DisplayInformation.AutoRotationPreferences\">http:\/\/oldnewthing.github.io\/Windows-universal-samples\/?Windows.Graphics.Display.DisplayInformation.AutoRotationPreferences<\/a> \n<li>Linking to a method is a little trickier, because you need to append     a backquote, then the number of parameters.     This is used to disambiguate overloaded methods. <a HREF=\"http:\/\/oldnewthing.github.io\/Windows-universal-samples\/?Windows.Storage.StorageFile.GetThumbnailAsync%602\">http:\/\/oldnewthing.github.io\/Windows-universal-samples\/?Windows.Storage.StorageFile.GetThumbnailAsync`2<\/a> \n<li>Linking to a constructor is the same as linking to a method,     except that you use the special method name <code>:ctor<\/code>. <a HREF=\"http:\/\/oldnewthing.github.io\/Windows-universal-samples\/?Windows.UI.Notifications.BadgeNotification.:ctor%601\">http:\/\/oldnewthing.github.io\/Windows-universal-samples\/?Windows.UI.Notifications.BadgeNotification.:ctor`1<\/a> <\/ul>\n<p>I will try to keep this site in sync with the latest release of the <a HREF=\"https:\/\/github.com\/Microsoft\/Windows-universal-samples\/\">Windows Universal Samples<\/a> repo. The site is kind of ugly right now, but it works just barely well enough to do what I needed. <\/p>\n<p>Note that the concordance is not complete. There are holes in the analysis which I hope to fill in over time. But at least it&#8217;s a decent start. <\/p>\n<p>Eventually, I&#8217;ll blog about the program I used to generate this information. The short answer is <a HREF=\"https:\/\/github.com\/dotnet\/roslyn\">Roslyn<\/a>. That&#8217;s why it searches only in C# samples. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Finding samples that use a particular method or property or whatever.<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[25],"class_list":["post-91631","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-code"],"acf":[],"blog_post_summary":"<p>Finding samples that use a particular method or property or whatever.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/91631","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=91631"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/91631\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=91631"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=91631"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=91631"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}