{"id":295,"date":"2016-12-22T12:03:53","date_gmt":"2016-12-22T12:03:53","guid":{"rendered":"https:\/\/ibex.tech\/windows-iot\/?p=295"},"modified":"2022-09-13T15:57:01","modified_gmt":"2022-09-13T14:57:01","slug":"useful-things-2","status":"publish","type":"post","link":"https:\/\/ibex.tech\/csharp\/uwp-programming-in-c\/application-control-uwp-programming-in-c\/useful-things-2","title":{"rendered":".Useful Things"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Debug Mode Only Compiler Check<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>#if DEBUG\t\t\t\/\/Only do if we're in debug mode\n#endif\n\n#if !DEBUG\t\t\t\/\/Only do if we're in release mode\n#endif\n\n#if (DEBUG &amp;&amp; DEBUG_AUTO_LOG_IN_USER_ID)\n#endif<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Close Application<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>\tWindows.ApplicationModel.Core.CoreApplication.Exit();<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Restart Application \/ Soft Reset<\/h4>\n\n\n\n<p>You can simply close the app and then the OS will immediately restart it&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Debug Mode Only Compiler Check Close Application Restart Application \/ Soft Reset You can simply close the app and then the OS will immediately restart it&nbsp;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[147],"tags":[],"class_list":["post-295","post","type-post","status-publish","format-standard","hentry","category-application-control-uwp-programming-in-c"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/295","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/comments?post=295"}],"version-history":[{"count":1,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/295\/revisions"}],"predecessor-version":[{"id":1207,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/295\/revisions\/1207"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/media?parent=295"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/categories?post=295"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/tags?post=295"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}