{"id":27,"date":"2012-01-22T18:07:34","date_gmt":"2012-01-22T18:07:34","guid":{"rendered":"http:\/\/www.developercookies.net\/?p=27"},"modified":"2020-12-25T13:53:34","modified_gmt":"2020-12-25T13:53:34","slug":"thread-extensions-for-invoking-winform-controls","status":"publish","type":"post","link":"https:\/\/www.developercookies.net\/de\/thread-extensions-for-invoking-winform-controls\/","title":{"rendered":"Thread Extensions for Invoking WinForm-Controls"},"content":{"rendered":"<p>Yes, I know WinForms is an outdated task of Microsoft and Wpf is the future. But most of the developer have honor to maintain&nbsp;WinForm project. WinForm controls have the boring feature that it is not possible to access from a foreign thread context to set the WinForm&nbsp;properties. If you do that you get a friendly exception and the application terminates, which is not a wanted function for the customers. To reach a stable application an Invoke-Call might solve this issue. For that I wrote a tread extension class which allows Invoked calls in several ways. Some code parts are from the web and some I developed by myself. For those which are still on WinForms this code part might help to synchronize data with controls.<!--more--><\/p>\n<pre class=\"brush:csharp\">    \/\/\/ &lt;summary&gt;\r\n    \/\/\/   CThreadExtensions class\r\n    \/\/\/ &lt;\/summary&gt;\r\n    public static class CThreadExtensions\r\n    {\r\n        #region Nested types\r\n\r\n        private delegate void SetPropertyValueCallback&lt;ControlType, PropertyType&gt;(\r\n            ControlType control, string propertyName, PropertyType value) where ControlType : Control;\r\n\r\n        #endregion\r\n\r\n        #region Delegates\r\n\r\n        \/\/\/ &lt;summary&gt;\r\n        \/\/\/   Func\r\n        \/\/\/ &lt;\/summary&gt;\r\n        public delegate void Func();\r\n\r\n        #endregion\r\n\r\n        #region Methods\r\n\r\n        \/\/\/ &lt;summary&gt;\r\n        \/\/\/   Thread safe control changes in WinForms with Invoke.\r\n        \/\/\/   Example:\r\n        \/\/\/     _control.ExecuteThreadSafe(ThreadSafeVoid);\r\n        \/\/\/ &lt;\/summary&gt;\r\n        \/\/\/ &lt;param name=\"control\"&gt; &lt;\/param&gt;\r\n        \/\/\/ &lt;param name=\"action\"&gt; &lt;\/param&gt;\r\n        public static void ExecuteThreadSafe(this Control control, Action action)\r\n        {\r\n            if (control.InvokeRequired)\r\n            {\r\n                control.Invoke(action);\r\n            }\r\n            else\r\n            {\r\n                action.Invoke();\r\n            }\r\n        }\r\n\r\n        \/\/\/ &lt;summary&gt;\r\n        \/\/\/   Thread safe control changes in WinForms with Invoke.\r\n        \/\/\/   Example:\r\n        \/\/\/     CThreadExtensions.Invoke(_control, new DelegateThreadSafeVoid(ThreadSaveVoid));\r\n        \/\/\/ &lt;\/summary&gt;\r\n        \/\/\/ &lt;param name=\"controlToInvokeOn\"&gt; &lt;\/param&gt;\r\n        \/\/\/ &lt;param name=\"code\"&gt; &lt;\/param&gt;\r\n        public static void Invoke(this Control controlToInvokeOn, Func code)\r\n        {\r\n            if (controlToInvokeOn.InvokeRequired)\r\n            {\r\n                controlToInvokeOn.Invoke(code);\r\n            }\r\n            else\r\n            {\r\n                code();\r\n            }\r\n        }\r\n\r\n        \/\/\/ &lt;summary&gt;\r\n        \/\/\/   Thread safe control changes in WinForms with Invoke, using the Invoke\r\n        \/\/\/   method with arguments.\r\n        \/\/\/   Example:\r\n        \/\/\/     CThreadExtensions.Invoke(_control, new DelegateThreadSafeVoid(ThreadSaveVoid),\r\n        \/\/\/                              new object[] { param1, param2, param3 });\r\n        \/\/\/ &lt;\/summary&gt;\r\n        \/\/\/ &lt;param name=\"controlToInvokeOn\"&gt; &lt;\/param&gt;\r\n        \/\/\/ &lt;param name=\"method\"&gt; &lt;\/param&gt;\r\n        \/\/\/ &lt;param name=\"args\"&gt; &lt;\/param&gt;\r\n        public static void Invoke(this Control controlToInvokeOn, Delegate method, params object[] args)\r\n        {\r\n            if (controlToInvokeOn.InvokeRequired)\r\n            {\r\n                if (controlToInvokeOn.IsHandleCreated)\r\n                {\r\n                    controlToInvokeOn.Invoke(method, args);\r\n                }\r\n            }\r\n            else\r\n            {\r\n                method.DynamicInvoke(args);\r\n            }\r\n        }\r\n\r\n        \/\/\/ &lt;summary&gt;\r\n        \/\/\/   Thread safe control changes in WinForms with Invoke\r\n        \/\/\/   Example:\r\n        \/\/\/     _control.invoke(() =&gt; ThreadSafeVoid);\r\n        \/\/\/ &lt;\/summary&gt;\r\n        \/\/\/ &lt;typeparam name=\"T\"&gt; &lt;\/typeparam&gt;\r\n        \/\/\/ &lt;typeparam name=\"TResult\"&gt; &lt;\/typeparam&gt;\r\n        \/\/\/ &lt;param name=\"controlToInvokeOn\"&gt; &lt;\/param&gt;\r\n        \/\/\/ &lt;param name=\"code\"&gt; &lt;\/param&gt;\r\n        \/\/\/ &lt;returns&gt; &lt;\/returns&gt;\r\n        public static TResult Invoke&lt;T, TResult&gt;(this T controlToInvokeOn, Func&lt;TResult&gt; code) where T : Control\r\n        {\r\n            if (controlToInvokeOn.InvokeRequired)\r\n            {\r\n                return (TResult) controlToInvokeOn.Invoke(code);\r\n            }\r\n            else\r\n            {\r\n                return code();\r\n            }\r\n        }\r\n\r\n        \/\/\/ &lt;summary&gt;\r\n        \/\/\/   Thread safe control changes in WinForms with Invoke\r\n        \/\/\/   Example:\r\n        \/\/\/     CThreadExtensions.SetPropertyThreadSafe(_control, \"Text\", \"Hello world\");\r\n        \/\/\/ &lt;\/summary&gt;\r\n        \/\/\/ &lt;typeparam name=\"ControlType\"&gt; &lt;\/typeparam&gt;\r\n        \/\/\/ &lt;typeparam name=\"PropertyType\"&gt; &lt;\/typeparam&gt;\r\n        \/\/\/ &lt;param name=\"control\"&gt; &lt;\/param&gt;\r\n        \/\/\/ &lt;param name=\"propertyName\"&gt; &lt;\/param&gt;\r\n        \/\/\/ &lt;param name=\"value\"&gt; &lt;\/param&gt;\r\n        public static void SetPropertyThreadSafe&lt;ControlType, PropertyType&gt;(ControlType control, string propertyName,\r\n                                                                            PropertyType value)\r\n            where ControlType : Control\r\n        {\r\n            try\r\n            {\r\n                if (control.InvokeRequired)\r\n                {\r\n                    SetPropertyValueCallback&lt;ControlType, PropertyType&gt; cb = SetPropertyThreadSafe;\r\n                    control.Invoke(cb, new object[] {control, propertyName, value});\r\n                }\r\n                else\r\n                {\r\n                    PropertyInfo property = control.GetType().GetProperty(propertyName);\r\n                    property.SetValue(control, value, null);\r\n                }\r\n            }\r\n            catch (Exception)\r\n            {\r\n            }\r\n        }\r\n\r\n        #endregion\r\n    }<\/pre>\n<p>&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>Yes, I know WinForms is an outdated task of Microsoft and Wpf is the future. But most of the developer have honor to maintain&nbsp;WinForm project. WinForm controls have the boring feature that it is not possible to access from a foreign thread context to set the WinForm&nbsp;properties. If you do that you get a friendly [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":510,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ngg_post_thumbnail":0,"footnotes":""},"categories":[10],"tags":[],"class_list":["post-27","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-c"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Thread Extensions for Invoking WinForm-Controls - Developer Cookies Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.developercookies.net\/de\/thread-extensions-for-invoking-winform-controls\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Thread Extensions for Invoking WinForm-Controls - Developer Cookies Blog\" \/>\n<meta property=\"og:description\" content=\"Yes, I know WinForms is an outdated task of Microsoft and Wpf is the future. But most of the developer have honor to maintain&nbsp;WinForm project. WinForm controls have the boring feature that it is not possible to access from a foreign thread context to set the WinForm&nbsp;properties. If you do that you get a friendly [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.developercookies.net\/de\/thread-extensions-for-invoking-winform-controls\/\" \/>\n<meta property=\"og:site_name\" content=\"Developer Cookies Blog\" \/>\n<meta property=\"article:published_time\" content=\"2012-01-22T18:07:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-12-25T13:53:34+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.developercookies.net\/wp-content\/uploads\/2012\/01\/time-699965_1920.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1280\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Peter\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Verfasst von\" \/>\n\t<meta name=\"twitter:data1\" content=\"Peter\" \/>\n\t<meta name=\"twitter:label2\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data2\" content=\"3\u00a0Minuten\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.developercookies.net\\\/de\\\/thread-extensions-for-invoking-winform-controls\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.developercookies.net\\\/de\\\/thread-extensions-for-invoking-winform-controls\\\/\"},\"author\":{\"name\":\"Peter\",\"@id\":\"https:\\\/\\\/www.developercookies.net\\\/#\\\/schema\\\/person\\\/3ebc9e2aff87c249f1085b36ffd91613\"},\"headline\":\"Thread Extensions for Invoking WinForm-Controls\",\"datePublished\":\"2012-01-22T18:07:34+00:00\",\"dateModified\":\"2020-12-25T13:53:34+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.developercookies.net\\\/de\\\/thread-extensions-for-invoking-winform-controls\\\/\"},\"wordCount\":135,\"publisher\":{\"@id\":\"https:\\\/\\\/www.developercookies.net\\\/#\\\/schema\\\/person\\\/3ebc9e2aff87c249f1085b36ffd91613\"},\"image\":{\"@id\":\"https:\\\/\\\/www.developercookies.net\\\/de\\\/thread-extensions-for-invoking-winform-controls\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.developercookies.net\\\/wp-content\\\/uploads\\\/2012\\\/01\\\/time-699965_1920.jpg\",\"articleSection\":[\"C#\"],\"inLanguage\":\"de\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.developercookies.net\\\/de\\\/thread-extensions-for-invoking-winform-controls\\\/\",\"url\":\"https:\\\/\\\/www.developercookies.net\\\/de\\\/thread-extensions-for-invoking-winform-controls\\\/\",\"name\":\"Thread Extensions for Invoking WinForm-Controls - Developer Cookies Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.developercookies.net\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.developercookies.net\\\/de\\\/thread-extensions-for-invoking-winform-controls\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.developercookies.net\\\/de\\\/thread-extensions-for-invoking-winform-controls\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.developercookies.net\\\/wp-content\\\/uploads\\\/2012\\\/01\\\/time-699965_1920.jpg\",\"datePublished\":\"2012-01-22T18:07:34+00:00\",\"dateModified\":\"2020-12-25T13:53:34+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.developercookies.net\\\/de\\\/thread-extensions-for-invoking-winform-controls\\\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.developercookies.net\\\/de\\\/thread-extensions-for-invoking-winform-controls\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\\\/\\\/www.developercookies.net\\\/de\\\/thread-extensions-for-invoking-winform-controls\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.developercookies.net\\\/wp-content\\\/uploads\\\/2012\\\/01\\\/time-699965_1920.jpg\",\"contentUrl\":\"https:\\\/\\\/www.developercookies.net\\\/wp-content\\\/uploads\\\/2012\\\/01\\\/time-699965_1920.jpg\",\"width\":1920,\"height\":1280},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.developercookies.net\\\/de\\\/thread-extensions-for-invoking-winform-controls\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.developercookies.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Thread Extensions for Invoking WinForm-Controls\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.developercookies.net\\\/#website\",\"url\":\"https:\\\/\\\/www.developercookies.net\\\/\",\"name\":\"Developer Cookies Blog\",\"description\":\"Recipes and tutorials for developers\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.developercookies.net\\\/#\\\/schema\\\/person\\\/3ebc9e2aff87c249f1085b36ffd91613\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.developercookies.net\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"de\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.developercookies.net\\\/#\\\/schema\\\/person\\\/3ebc9e2aff87c249f1085b36ffd91613\",\"name\":\"Peter\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8eec59bcecb6c1083084fcd3d11551d8c4451902fb594f87782fbda27fe8bd08?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8eec59bcecb6c1083084fcd3d11551d8c4451902fb594f87782fbda27fe8bd08?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8eec59bcecb6c1083084fcd3d11551d8c4451902fb594f87782fbda27fe8bd08?s=96&d=mm&r=g\",\"caption\":\"Peter\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8eec59bcecb6c1083084fcd3d11551d8c4451902fb594f87782fbda27fe8bd08?s=96&d=mm&r=g\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Thread Extensions for Invoking WinForm-Controls - Developer Cookies Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.developercookies.net\/de\/thread-extensions-for-invoking-winform-controls\/","og_locale":"de_DE","og_type":"article","og_title":"Thread Extensions for Invoking WinForm-Controls - Developer Cookies Blog","og_description":"Yes, I know WinForms is an outdated task of Microsoft and Wpf is the future. But most of the developer have honor to maintain&nbsp;WinForm project. WinForm controls have the boring feature that it is not possible to access from a foreign thread context to set the WinForm&nbsp;properties. If you do that you get a friendly [&hellip;]","og_url":"https:\/\/www.developercookies.net\/de\/thread-extensions-for-invoking-winform-controls\/","og_site_name":"Developer Cookies Blog","article_published_time":"2012-01-22T18:07:34+00:00","article_modified_time":"2020-12-25T13:53:34+00:00","og_image":[{"width":1920,"height":1280,"url":"https:\/\/www.developercookies.net\/wp-content\/uploads\/2012\/01\/time-699965_1920.jpg","type":"image\/jpeg"}],"author":"Peter","twitter_card":"summary_large_image","twitter_misc":{"Verfasst von":"Peter","Gesch\u00e4tzte Lesezeit":"3\u00a0Minuten"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.developercookies.net\/de\/thread-extensions-for-invoking-winform-controls\/#article","isPartOf":{"@id":"https:\/\/www.developercookies.net\/de\/thread-extensions-for-invoking-winform-controls\/"},"author":{"name":"Peter","@id":"https:\/\/www.developercookies.net\/#\/schema\/person\/3ebc9e2aff87c249f1085b36ffd91613"},"headline":"Thread Extensions for Invoking WinForm-Controls","datePublished":"2012-01-22T18:07:34+00:00","dateModified":"2020-12-25T13:53:34+00:00","mainEntityOfPage":{"@id":"https:\/\/www.developercookies.net\/de\/thread-extensions-for-invoking-winform-controls\/"},"wordCount":135,"publisher":{"@id":"https:\/\/www.developercookies.net\/#\/schema\/person\/3ebc9e2aff87c249f1085b36ffd91613"},"image":{"@id":"https:\/\/www.developercookies.net\/de\/thread-extensions-for-invoking-winform-controls\/#primaryimage"},"thumbnailUrl":"https:\/\/www.developercookies.net\/wp-content\/uploads\/2012\/01\/time-699965_1920.jpg","articleSection":["C#"],"inLanguage":"de"},{"@type":"WebPage","@id":"https:\/\/www.developercookies.net\/de\/thread-extensions-for-invoking-winform-controls\/","url":"https:\/\/www.developercookies.net\/de\/thread-extensions-for-invoking-winform-controls\/","name":"Thread Extensions for Invoking WinForm-Controls - Developer Cookies Blog","isPartOf":{"@id":"https:\/\/www.developercookies.net\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.developercookies.net\/de\/thread-extensions-for-invoking-winform-controls\/#primaryimage"},"image":{"@id":"https:\/\/www.developercookies.net\/de\/thread-extensions-for-invoking-winform-controls\/#primaryimage"},"thumbnailUrl":"https:\/\/www.developercookies.net\/wp-content\/uploads\/2012\/01\/time-699965_1920.jpg","datePublished":"2012-01-22T18:07:34+00:00","dateModified":"2020-12-25T13:53:34+00:00","breadcrumb":{"@id":"https:\/\/www.developercookies.net\/de\/thread-extensions-for-invoking-winform-controls\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.developercookies.net\/de\/thread-extensions-for-invoking-winform-controls\/"]}]},{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/www.developercookies.net\/de\/thread-extensions-for-invoking-winform-controls\/#primaryimage","url":"https:\/\/www.developercookies.net\/wp-content\/uploads\/2012\/01\/time-699965_1920.jpg","contentUrl":"https:\/\/www.developercookies.net\/wp-content\/uploads\/2012\/01\/time-699965_1920.jpg","width":1920,"height":1280},{"@type":"BreadcrumbList","@id":"https:\/\/www.developercookies.net\/de\/thread-extensions-for-invoking-winform-controls\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.developercookies.net\/"},{"@type":"ListItem","position":2,"name":"Thread Extensions for Invoking WinForm-Controls"}]},{"@type":"WebSite","@id":"https:\/\/www.developercookies.net\/#website","url":"https:\/\/www.developercookies.net\/","name":"Developer Cookies Blog","description":"Recipes and tutorials for developers","publisher":{"@id":"https:\/\/www.developercookies.net\/#\/schema\/person\/3ebc9e2aff87c249f1085b36ffd91613"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.developercookies.net\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"de"},{"@type":["Person","Organization"],"@id":"https:\/\/www.developercookies.net\/#\/schema\/person\/3ebc9e2aff87c249f1085b36ffd91613","name":"Peter","image":{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/secure.gravatar.com\/avatar\/8eec59bcecb6c1083084fcd3d11551d8c4451902fb594f87782fbda27fe8bd08?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/8eec59bcecb6c1083084fcd3d11551d8c4451902fb594f87782fbda27fe8bd08?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8eec59bcecb6c1083084fcd3d11551d8c4451902fb594f87782fbda27fe8bd08?s=96&d=mm&r=g","caption":"Peter"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/8eec59bcecb6c1083084fcd3d11551d8c4451902fb594f87782fbda27fe8bd08?s=96&d=mm&r=g"}}]}},"_links":{"self":[{"href":"https:\/\/www.developercookies.net\/de\/wp-json\/wp\/v2\/posts\/27","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.developercookies.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.developercookies.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.developercookies.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.developercookies.net\/de\/wp-json\/wp\/v2\/comments?post=27"}],"version-history":[{"count":6,"href":"https:\/\/www.developercookies.net\/de\/wp-json\/wp\/v2\/posts\/27\/revisions"}],"predecessor-version":[{"id":511,"href":"https:\/\/www.developercookies.net\/de\/wp-json\/wp\/v2\/posts\/27\/revisions\/511"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.developercookies.net\/de\/wp-json\/wp\/v2\/media\/510"}],"wp:attachment":[{"href":"https:\/\/www.developercookies.net\/de\/wp-json\/wp\/v2\/media?parent=27"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.developercookies.net\/de\/wp-json\/wp\/v2\/categories?post=27"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.developercookies.net\/de\/wp-json\/wp\/v2\/tags?post=27"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}