{"id":321497,"date":"2021-04-15T15:00:33","date_gmt":"2021-04-15T15:00:33","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=321497"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=321497","title":{"rendered":"\u00ab\u041f\u0438\u0448\u0438\u0442\u0435 \u043a\u043e\u0434 \u043f\u043e-\u043d\u043e\u0432\u043e\u043c\u0443 (\u0442\u043c)\u00bb"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\"><a href=\"https:\/\/habr.com\/ru\/company\/ruvds\/blog\/552584\/\"><\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/dg\/ot\/eu\/dgoteuauz-prkvy1q1wigufxhc0.png\"><\/div>\n<p><\/a><\/p>\n<p>  C# \u044f \u043d\u0435 \u043b\u044e\u0431\u043b\u044e, \u043d\u043e \u043b\u044e\u0431\u043b\u044e \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0432\u0441\u0435 \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u044b \u0438 \u0432\u0435\u0441\u044c \u0441\u0430\u0445\u0430\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u043d\u0438 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e\u0442 \u043e\u0442 \u0432\u0435\u0440\u0441\u0438\u0438 \u043a \u0432\u0435\u0440\u0441\u0438\u0438.<\/p>\n<p>  \u0422\u0440\u0435\u0442\u044c\u0435\u0433\u043e \u0434\u043d\u044f \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u043b <a href=\"https:\/\/www.youtube.com\/watch?v=aUbXGs7YTGo&amp;t=1391s\">\u0432\u044b\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435 \u0411\u0438\u043b\u043b\u0430 \u0412\u0430\u0433\u043d\u0435\u0440\u0430 \u043d\u0430 NDC Conferences<\/a>, \u0433\u0434\u0435 \u043e\u043d \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u043b, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043e\u0434 \u043f\u043e-\u043d\u043e\u0432\u043e\u043c\u0443 (TM).<\/p>\n<p>  \u041e\u043d \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043c\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u0445\u043e\u0440\u043e\u0448\u0435\u0433\u043e \u0440\u0435\u0444\u0430\u043a\u0442\u043e\u0440\u0438\u043d\u0433\u0430, \u043a\u043e\u0434 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0431\u043e\u043b\u0435\u0435 \u0447\u0438\u0442\u0430\u0435\u043c\u044b\u043c, \u043d\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u0441 \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u044f \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e \u044f\u0437\u044b\u043a\u0443 \u043d\u0443\u0436\u0435\u043d \u0432\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u0439 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u043e\u0440.<a name=\"habracut\"><\/a><\/p>\n<h2><font color=\"#3AC1EF\">\u0421\u0430\u0445\u0430\u0440\u043e\u043c \u0434\u0435\u043b\u0443 \u043d\u0435 \u043f\u043e\u043c\u043e\u0436\u0435\u0448\u044c<\/font><\/h2>\n<p>  \u0412\u043e\u0437\u044c\u043c\u0435\u043c \u043f\u043b\u043e\u0445\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442 \u043a\u043e\u0434\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u043b\u044e\u0431\u0438\u0442\u0435\u043b\u044c \u043d\u0430 \u043a\u043e\u043b\u0435\u043d\u043a\u0435. \u042d\u0442\u043e\u0442 \u043c\u0435\u0442\u043e\u0434 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 \u043a\u043b\u0430\u0441\u0441\u0430 \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 true, \u0435\u0441\u043b\u0438 \u0432\u0441\u0435 \u0445\u043e\u0440\u043e\u0448\u043e \u0438 false, \u0435\u0441\u043b\u0438 \u043d\u0435 \u0445\u043e\u0440\u043e\u0448\u043e.<\/p>\n<pre><code class=\"cpp\">internal bool GetAvailability() {     if (_runspace.RunspacePoolAvailability == RunspacePoolAvailability.Available) { return true;}     if (_runspace.RunspacePoolAvailability == RunspacePoolAvailability.Busy) { return true;}     return false; }<\/code><\/pre>\n<p>  \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442 \u0441\u0442\u0430\u0440\u0430\u043b\u0441\u044f, \u0434\u0430\u0436\u0435 \u043d\u0438 \u043e\u0434\u043d\u043e\u0433\u043e else \u0432 \u043c\u0435\u0442\u043e\u0434\u0435. \u041d\u043e \u043c\u044b \u0442\u043e \u043e\u043f\u044b\u0442\u043d\u044b\u0435, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0437\u0430\u0440\u0435\u0444\u0430\u043a\u0442\u043e\u0440\u0438\u043c \u0435\u0433\u043e, \u0443\u0431\u0435\u0440\u0435\u043c if\u2019\u044b \u0438 \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u043c \u044d\u0442\u043e \u0432 \u0442\u0435\u0440\u043d\u0430\u0440\u043a\u0443:<\/p>\n<pre><code class=\"cpp\">internal bool GetAvailability() {     return _runspace.RunspacePoolAvailability == RunspacePoolAvailability.Available ||            _runspace.RunspacePoolAvailability == RunspacePoolAvailability.Busy; }<\/code><\/pre>\n<p>  \u0421\u0442\u0430\u043b\u043e \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043b\u0443\u0447\u0448\u0435, 2 \u0441\u0442\u0440\u043e\u043a\u0438 \u043a\u043e\u0434\u0430 \u0432\u043c\u0435\u0441\u0442\u043e 5, \u043d\u043e \u0442\u0435\u0440\u043d\u0430\u0440\u043a\u0443 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u0442\u044c \u0432 \u043f\u0430\u0442\u0442\u0435\u0440\u043d:<\/p>\n<pre><code class=\"cpp\">internal bool GetAvailability() {     return _runspace.RunspacePoolAvailability is RunspacePoolAvailability.Available or RunspacePoolAvailability.Busy; }<\/code><\/pre>\n<p>  \u0418\u0442\u043e\u0433\u043e \u043c\u044b \u043e\u0441\u0442\u0430\u0432\u0438\u043b\u0438 \u043e\u0434\u043d\u0443 \u043a\u0440\u0430\u0441\u0438\u0432\u0443\u044e \u0441\u0442\u0440\u043e\u0447\u043a\u0443 \u043a\u043e\u0434\u0430. \u0412\u0441\u0435! \u0420\u0435\u0444\u0430\u043a\u0442\u043e\u0440\u0438\u043d\u0433 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d! (\u043d\u0435\u0442)<\/p>\n<pre><code class=\"cpp\">internal void Invoke() { \tif (!GetAvailability()) return;         PowerShell _powershell = PowerShell.Create();         _powershell.RunspacePool = _runspace;         _powershell.Invoke()      }<\/code><\/pre>\n<p>  \u0412\u044b\u0437\u043e\u0432 _powershell\u2019\u0430 \u0432 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u043c _runspace\u2019e \u0432\u044b\u0437\u043e\u0432\u0435\u0442 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435.<\/p>\n<p>  \u0412\u0441\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e \u043f\u043b\u043e\u0445\u0438 \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u043e\u043d \u0440\u0435\u0448\u0430\u044e\u0442 \u043e\u0434\u043d\u0443 \u0437\u0430\u0434\u0430\u0447\u0443 \u2013 \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u0442 \u043a\u043e\u0434 \u0437\u0430 \u0441\u043e\u0431\u043e\u0439, \u0447\u0442\u043e\u0431\u044b \u0442\u043e\u0442 \u043d\u0435 \u0432\u044b\u0434\u0430\u043b \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435, \u0430 \u0442\u043e, \u043a\u0430\u043a \u043e\u043d \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u044d\u0442\u043e \u0443\u0436\u0435 \u0434\u0435\u0441\u044f\u0442\u043e\u0435 \u0434\u0435\u043b\u043e.<\/p>\n<p>  \u041a\u043e\u0434 \u0431\u044b\u043b \u043d\u0435 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043d, \u043d\u043e \u0435\u0433\u043e \u0441\u043c\u044b\u0441\u043b \u043d\u0435 \u043f\u043e\u043c\u0435\u043d\u044f\u043b\u0441\u044f.<\/p>\n<h2><font color=\"#3AC1EF\">\u0411\u043e\u043b\u044c\u0448\u0435 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439!<\/font><\/h2>\n<p>  \u041a\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0441 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c\u044e, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u044e\u0442 \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438. \u0424\u0430\u0439\u043b \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d, \u0444\u0430\u0439\u043b \u043d\u0435 \u0442\u043e\u0433\u043e \u0444\u043e\u0440\u043c\u0430\u0442\u0430, \u043d\u0435 \u0442\u043e\u0433\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0433\u043e, \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0433\u043e \u043d\u0435\u0442, Streamreader \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043b null \u0438\u043b\u0438 \u043f\u0443\u0441\u0442\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u043f\u0435\u0440\u0435\u0434\u0430\u043b \u044d\u0442\u043e \u0434\u0430\u043b\u044c\u0448\u0435. \u041d\u0430\u043f\u0438\u0441\u0430\u043d\u044b \u0434\u0432\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u043a\u043e\u0434\u0430 \u0438 \u043e\u0431\u0435 \u0441\u043b\u043e\u043c\u0430\u043d\u044b, \u043d\u043e \u044f \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u043b \u0432\u044b\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435 \u0438 \u043f\u0440\u043e\u0437\u0440\u0435\u043b.<\/p>\n<blockquote><p>\u00ab\u041d\u043e \u0431\u0435\u0441\u043f\u043e\u043a\u043e\u0439\u0442\u0435\u0441\u044c, \u0442\u0435\u043f\u0435\u0440\u044c, \u0434\u0435\u043b\u0430\u044f \u0441\u0432\u043e\u0439 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043a\u043b\u0430\u0441\u0441 \u0438\u043b\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0435 \u0434\u0443\u043c\u0430\u0442\u044c \u043e \u0437\u0430\u0449\u0438\u0442\u043d\u043e\u043c \u043a\u043e\u0434\u0435, \u0442\u0430\u0439\u043f\u0447\u0435\u043a \u0437\u0430 \u043d\u0430\u0441 \u0434\u0435\u043b\u0430\u0435\u0442 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440, \u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0430 null \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0431\u044b\u043b\u0430 \u043f\u0440\u043e\u0449\u0435!<\/p>\n<p>  \u041f\u0440\u043e\u0441\u0442\u043e \u0441\u043a\u0438\u043d\u044c\u0442\u0435 \u0432\u0441\u0435 \u043d\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0438 \u043f\u0438\u0448\u0438\u0442\u0435 \u043a\u043e\u0434. \u0412\u044b\u043a\u0438\u0434\u044b\u0432\u0430\u0442\u044c \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0438 \u043a\u043b\u0430\u0441\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0442\u0435\u043f\u0435\u0440\u044c \u0441\u0442\u0430\u043b\u043e \u043f\u0440\u0435\u0441\u0442\u0438\u0436\u043d\u043e! \u042f \u043a\u0438\u0434\u0430\u044e, \u0430 \u0442\u044b \u043b\u043e\u0432\u0438!\u00bb<\/p><\/blockquote>\n<p>  \u0422\u043e\u0442, \u043a\u0430\u043a \u044f \u043f\u043e\u043d\u044f\u043b \u0434\u043e\u043a\u043b\u0430\u0434 \u0411\u0438\u043b\u043b\u0430 \u0412\u0430\u0433\u043d\u0435\u0440\u0430 \u2013 NDC Conferences 2020<\/p>\n<p>  \u042f \u0431\u044b\u043b \u043d\u0430\u0441\u0442\u043e\u043b\u044c\u043a\u043e \u0432\u0434\u043e\u0445\u043d\u043e\u0432\u043b\u0435\u043d \u044d\u0442\u043e\u0439 \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u0435\u0439, \u0434\u0430 \u0438 \u0440\u0430\u0431\u043e\u0442\u043e\u0439 .net \u0432 \u0446\u0435\u043b\u043e\u043c, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u0432\u0430\u043c \u043f\u0440\u0430\u0432\u0434\u0438\u0432\u0443\u044e \u0438\u0441\u0442\u043e\u0440\u0438\u044e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043a\u043b\u0430\u0441\u0441\u043e\u0432 RunspacePool \u0438 Powershell \u0438\u0437 System.Management.Automation, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u044f \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f:<\/p>\n<h3><font color=\"#3AC1EF\">\u041a\u0443\u0440\u0438\u043b\u044c\u0449\u0438\u043a \u21161 \u0434\u0435\u043b\u0430\u0435\u0442 Powershell<\/font><\/h3>\n<p>  \u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0442\u044c, \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043c\u044b \u0434\u0435\u043b\u0430\u0435\u043c \u0431\u0443\u043b\u0451\u0432\u043e\u0435 \u043f\u043e\u043b\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043d\u0430 true \u043f\u0440\u0438 \u0432\u044b\u0437\u043e\u0432\u0435 \u043c\u0435\u0442\u043e\u0434\u0430 Dispose.<\/p>\n<p>  \u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u0435 IsDisposed \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u043d\u0435\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e, \u0435\u0441\u043b\u0438 CLR \u0441\u043e\u0431\u0435\u0440\u0435\u0442 \u043c\u0443\u0441\u043e\u0440, \u043c\u043e\u0436\u043d\u043e \u0441\u043b\u043e\u0432\u0438\u0442\u044c Null reference.<\/p>\n<pre><code class=\"cpp\">class PowershellInNutshell() : IDisposable {     private static bool IsDisposed = false;     private static RunspacePoolInTheNuttshell;      public static void Invoke()     {         if (IsDisposed) throw new ObjectDisposedException();         Console.WriteLine(&quot;I was invoked&quot;);     }      public void Dispose()     {         if (IsDisposed) throw new ObjectDisposedException(&quot;Invoke&quot;,&quot;\u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043d\u0430 \u0440\u0443\u0441\u0441\u043a\u043e\u043c \u044f\u0437\u044b\u043a\u0435, \u0435\u0441\u043b\u0438 \u0432\u0438\u043d\u0434\u0430 \u0440\u0443\u0441\u0441\u043a\u0430\u044f \u0438\u043b\u0438 \u043d\u0430 \u0438\u0442\u0430\u043b\u044c\u044f\u043d\u0441\u043a\u043e\u043c, \u0435\u0441\u043b\u0438 \u0438\u0442\u0430\u043b\u044c\u044f\u043d\u0441\u043a\u0430\u044f&quot;);         IsDisposed = true;         Console.WriteLine(&quot;I was invoked&quot;);         GC.SuppressFinalize(this);     } }<\/code><\/pre>\n<p>  \u041f\u0440\u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e\u043c \u0432\u044b\u0437\u043e\u0432\u0435 Dispose \u0438\u043b\u0438 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430 \u043c\u044b \u0432\u044b\u043a\u0438\u0434\u044b\u0432\u0430\u0435\u043c \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0438 \u043f\u0443\u0441\u0442\u044c \u0434\u0440\u0443\u0433\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442 \u0435\u0449\u0435 \u0438 \u0441\u0432\u043e\u0438\u043c \u043a\u043e\u0434\u043e\u043c \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 \u0438\u043b\u0438 \u043b\u043e\u0432\u0438\u0442 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f, \u043d\u043e \u044d\u0442\u043e \u043d\u0435 \u043c\u043e\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b.<\/p>\n<h3><font color=\"#3AC1EF\">\u041a\u0443\u0440\u0438\u043b\u044c\u0449\u0438\u043a \u21162 \u0434\u0435\u043b\u0430\u0435\u0442 RunspacePooll<\/font><\/h3>\n<p>  \u0422\u0443\u0442 \u0442\u043e\u0436\u0435 \u0434\u0435\u043b\u0430\u0435\u043c \u043f\u043e\u043b\u0435 IsDisposed, \u043d\u043e \u043d\u0430 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u0434\u0435\u043b\u0430\u0435\u043c \u0435\u0433\u043e \u0441 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u043c \u0433\u0435\u0442\u0435\u0440\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0443, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0435\u043c\u0443 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u0438\u0441\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u0437\u0430\u0449\u0438\u0442\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430.<\/p>\n<pre><code class=\"cpp\">class RunspacePoolInTheNuttshell() : IDisposable {     public static bool IsDisposed = false;          public void Dispose()     {         if (IsDisposed) return;         IsDisposed = true;         GC.SuppressFinalize(this);         Console.WriteLine(&quot;I was invoked&quot;);     } }<\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u043c\u0435\u0442\u043e\u0434 Dispose \u0431\u044b\u043b \u0432\u044b\u0437\u0432\u0430\u043d, \u0434\u0435\u043b\u0430\u0435\u043c return \u0438 \u0434\u0435\u043b\u043e \u0441 \u043a\u043e\u043d\u0446\u043e\u043c. \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u043f\u0440\u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e\u043c \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0438 \u043a \u043f\u043e\u043b\u044e \u043e\u043d \u043f\u043e\u043b\u0443\u0447\u0438\u0442 nullref, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043e\u0431\u044a\u0435\u043a\u0442 \u0443\u0436\u0435 \u0431\u0443\u0434\u0435\u0442 \u0443\u0434\u0430\u043b\u0435\u043d \u0438\u0437 \u043f\u0430\u043c\u044f\u0442\u0438, \u043d\u043e \u043c\u043e\u044f \u043b\u0438 \u044d\u0442\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430.<\/p>\n<h3><font color=\"#3AC1EF\">\u0417\u0434\u043e\u0440\u043e\u0432\u044b\u0439 \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443:<\/font><\/h3>\n<p>  \u0417\u0434\u0435\u0441\u044c \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435, \u0437\u0434\u0435\u0441\u044c \u043d\u0435 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435, \u0437\u0434\u0435\u0441\u044c \u0440\u044b\u0431\u0443 \u0437\u0430\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u043c. \u041e\u0431\u0430 \u043a\u043b\u0430\u0441\u0441\u0430 \u0438\u0434\u0443\u0442 \u0432 \u043e\u0434\u043d\u043e\u043c \u043f\u0430\u043a\u0435\u0442\u0435 \u0438 \u0438\u043c\u0435\u044e\u0442 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u043e\u0435 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435. \u041a\u043b\u0430\u0441\u0441\u044b \u0432\u044b\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u044e\u0442 \u043e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 \u0442\u0438\u043f \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439 \u043f\u043e \u0440\u0430\u0437\u043d\u044b\u043c \u043f\u0440\u0438\u0447\u0438\u043d\u0430\u043c.<\/p>\n<ul>\n<li>\u041d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u043e\u043b\u044c? InvalidRunspacePoolStateException!<\/li>\n<li>\u041d\u0435\u0442 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f? InvalidRunspacePoolStateException!<\/li>\n<\/ul>\n<p>  \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u0432 \u043e\u0434\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435 \u043d\u0443\u0436\u043d\u043e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c ObjectDisposedException, \u0432 \u0434\u0440\u0443\u0433\u043e\u043c NullReferenceException \u0432 \u0442\u0440\u0435\u0442\u044c\u0435\u043c InvalidRunspacePoolStateException \u0438 \u0432\u0441\u0435 \u043f\u043e\u043b\u043d\u043e \u0441\u044e\u0440\u043f\u0440\u0438\u0437\u043e\u0432.<\/p>\n<h2><font color=\"#3AC1EF\">\u0418\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u2014 \u043d\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435<\/font><\/h2>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/fq\/km\/kc\/fqkmkc_yinnmnmtqwlqyatazwzi.png\"><\/div>\n<p>  \u0414\u043e \u043f\u0440\u0438\u0447\u0430\u0449\u0435\u043d\u0438\u044f \u0441\u0432\u044f\u0442\u044b\u0445 \u0442\u0430\u0438\u043d\u0441\u0442\u0432 \u044f \u0447\u0438\u0442\u0430\u043b \u0444\u0430\u0439\u043b \u043f\u043e-\u0441\u0442\u0430\u0440\u043e\u043c\u0443:<\/p>\n<pre><code class=\"cpp\">public static void Main() {     string txt = @&quot;c:\\temp\\test.txt&quot;;          if (File.Exists(txt)) return;     string readText = File.ReadAllText(txt);     Console.WriteLine(readText); }<\/code><\/pre>\n<p>  \u041d\u043e \u043f\u043e\u0441\u043b\u0435 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u0432\u0438\u0434\u0435\u043e \u044f \u043d\u0430\u0447\u0430\u043b \u0434\u0435\u043b\u0430\u0442\u044c \u043f\u043e-\u043d\u043e\u0432\u043e\u043c\u0443:<\/p>\n<pre><code class=\"cpp\">public static void Main() {     string txt = @&quot;c:\\temp\\test.txt&quot;;     try     {         string readText = File.ReadAllText(txt);         Console.WriteLine(readText);     }     catch (System.IO.FileNotFoundException)     {         Console.WriteLine(&quot;File was not found&quot;);     } }<\/code><\/pre>\n<p>  \u0418\u043b\u0438 \u044d\u0442\u043e \u043f\u043e-\u043d\u043e\u0432\u043e\u043c\u0443?<\/p>\n<pre><code class=\"cpp\">public static void Main() {     string txt = @&quot;c:\\temp\\test.txt&quot;;      if (!File.Exists(txt))     {         throw new NullReferenceException();     }     string readText = File.ReadAllText(txt);     Console.WriteLine(readText); }<\/code><\/pre>\n<p>  \u041a\u0430\u043a \u0438\u043c\u0435\u043d\u043d\u043e \u043f\u043e-\u043d\u043e\u0432\u043e\u043c\u0443? \u0413\u0434\u0435 \u0438\u043c\u0435\u043d\u043d\u043e \u043a\u043e\u043d\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f?<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/6f\/pn\/xm\/6fpnxmjzipdpjdsqlqvf3nkchye.png\"><\/div>\n<p>  \u0412 \u0446\u0435\u043b\u043e\u043c, \u0437\u0430\u0434\u0443\u043c\u043a\u0430 \u044f\u0441\u043d\u0430, \u0435\u0441\u043b\u0438 \u0442\u044b \u044f\u0432\u043b\u044f\u0435\u0448\u044c\u0441\u044f \u0430\u0432\u0442\u043e\u0440\u043e\u043c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0440\u0430\u0437\u0443 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u043c\u0435\u0442\u043e\u0434 \u0438 \u043f\u043e\u0434\u0430\u0432\u0430\u0442\u044c \u043d\u0430 \u043d\u0435\u0433\u043e \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u0442\u044b \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e \u0437\u043d\u0430\u0435\u0448\u044c \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u043d\u0443\u044e \u043e\u0431\u043b\u0430\u0441\u0442\u044c \u0438 \u043e\u043f\u0438\u0441\u0430\u043b \u0432\u0441\u0435 \u0441\u043b\u0443\u0447\u0430\u0438 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f, \u0432\u044b\u0431\u0440\u043e\u0441\u0438\u043b \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u043c\u0435\u044e\u0442 \u0441\u043c\u044b\u0441\u043b \u0438 \u0441\u0430\u043c \u0438\u0445 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043b.<\/p>\n<pre><code class=\"cpp\">internal class NewWay {     public static string _a;     public static string _b;     public static string _c;      public static void NewWay(string a, string b, string c)     {         string _a = a ?? throw new NullReferenceException(&quot;a is null&quot;);         string _b = b ?? throw new NullReferenceException(&quot;b is null&quot;);         string _c = c ?? throw new NullReferenceException(&quot;c is null&quot;);     }     public void Print()     {         if (String.Compare(_a, _b) != 0)         {             throw new DataException(&quot;Some Other Ex&quot;);         }          Console.WriteLine($&quot;{_a + _b + _c}&quot;);\/\/ \u041b\u043e\u0433\u0438\u043a\u0430     } }<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"cpp\">try {     NewWay newway = new(stringThatCanBeNull, stringThatCanBeNull, stringThatCanBeNull);     newway.Print(); } catch (NullReferenceException ex) {     Console.WriteLine(&quot;\u041a\u043e\u043c\u043f\u0435\u043d\u0441\u0430\u0442\u043e\u0440\u043d\u0430\u044f \u043b\u043e\u0433\u0438\u043a\u0430&quot;); } catch (DataException ex) {     Console.WriteLine(&quot;\u041a\u043e\u043c\u043f\u0435\u043d\u0441\u0430\u0442\u043e\u0440\u043d\u0430\u044f \u043b\u043e\u0433\u0438\u043a\u0430&quot;); } <\/code><\/pre>\n<p>  \u0421\u0430\u043c\u044b\u0435 \u0434\u043e\u0433\u0430\u0434\u043b\u0438\u0432\u044b\u0435 \u0443\u0436\u0435 \u043f\u043e\u043d\u044f\u043b\u0438, \u043a \u0447\u0435\u043c\u0443 \u044f \u0432\u0435\u0434\u0443. \u041e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u044f \u043a\u043e\u0440\u0440\u0435\u043a\u0446\u0438\u0438 \u043e\u0448\u0438\u0431\u043e\u043a \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0430\u044f \u043d\u0430 try catch \u0431\u043b\u043e\u043a\u0430\u0445 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043a \u0443\u0433\u043b\u0443\u0431\u043b\u0435\u043d\u0438\u044e \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u043a\u043e\u0434\u0430.<\/p>\n<p>  \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u044d\u0442\u043e\u0442 \u043f\u0430\u0442\u0442\u0435\u0440\u043d \u043c\u044b \u0432 \u043b\u044e\u0431\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u0442\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u0441\u044f \u043e\u0442 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u0434\u0430, \u043d\u043e \u0432\u0435\u0436\u043b\u0438\u0432\u0435\u0435.<\/p>\n<p>  \u0412 \u0446\u0435\u043b\u043e\u043c, \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u043e\u0432\u043e\u0433\u043e, \u0435\u0449\u0435 10 \u043b\u0435\u0442 \u043d\u0430\u0437\u0430\u0434 \u043b\u044e\u0434\u0438 \u043d\u0430\u0447\u0430\u043b\u0438 \u043f\u043e\u0434\u043e\u0437\u0440\u0435\u0432\u0430\u0442\u044c \u0447\u0442\u043e \u0421# \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0436\u0435\u043d \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u0430\u043c\u0438 \u0438 \u0438\u0437 \u0433\u043e\u0434\u0430 \u0432 \u0433\u043e\u0434 \u0438\u0445 \u043c\u0435\u043d\u044c\u0448\u0435 \u043d\u0435 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f. \u0412\u0441\u0442\u0440\u0435\u0447\u0430\u0439\u0442\u0435 \u0435\u0449\u0435 \u043e\u0434\u0438\u043d, \u0431\u0440\u043e\u0441\u0430\u0442\u044c \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0441\u0442\u0430\u043b\u043e \u0435\u0449\u0435 \u043f\u0440\u043e\u0449\u0435.<\/p>\n<h2><font color=\"#3AC1EF\">\u0418 \u043f\u043e\u0434 \u043a\u043e\u043d\u0435\u0446 \u2014 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b<\/font><\/h2>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/hi\/ia\/8j\/hiia8jny2hp6ejrb7jyxlsmwyli.png\"><\/div>\n<p>  \u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0438\u043a\u0443\u0434\u0430 \u043a\u0430\u0441\u0442\u0438\u0442\u044c.<\/p>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0437 JS \u0432\u044b \u043d\u0430\u0432\u0435\u0440\u043d\u044f\u043a\u0430 \u0437\u043d\u0430\u0435\u0442\u0435:<\/p>\n<pre><code class=\"javascript\">console.log('2'+'2'-'2'); \/\/ 20<\/code><\/pre>\n<p>\u00a0<br \/>  \u0414\u0438\u0437\u0430\u0439\u043d\u0435\u0440\u044b JS \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u043b\u0438, \u0447\u0442\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u0441\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u043a\u043e\u043d\u043a\u0430\u0442\u0435\u043d\u0430\u0446\u0438\u0438 \u043d\u0435 \u043d\u0443\u0436\u043d\u044b, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u0435\u043b\u0430\u0442\u044c \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0443 \u043d\u0430 JS \u043d\u0435\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e.<\/p>\n<p>  \u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u043c \u044d\u0442\u043e\u0433\u043e \u0431\u0430\u0433\u0430 \u0432 JS \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0435\u044f\u0432\u043d\u043e\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0442\u0438\u043f\u0430 string \u043a \u0442\u0438\u043f\u0443 int \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430. \u0422\u0430\u043a \u043b\u0438\u0448\u043d\u0438\u0439 \u0441\u0430\u0445\u0430\u0440 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0431\u0430\u0433\u043e\u043c.<\/p>\n<p>  \u041d\u0435\u044f\u0432\u043d\u044b\u043c \u043a\u0430\u0441\u0442\u043e\u043c \u0442\u0438\u043f\u043e\u0432 \u0431\u043e\u043b\u0435\u0435\u0442 \u0438 C# \u0442\u043e\u0436\u0435, \u0445\u043e\u0442\u044c \u0438 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0440\u0435\u0436\u0435. \u0412\u0437\u044f\u0442\u044c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u0438\u043d\u043f\u0443\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0441\u043b\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u043d\u0430\u0447\u0430\u043b \u043c\u0430\u043f\u0438\u0442\u044c\u0441\u044f \u0432 string \u0432\u043c\u0435\u0441\u0442\u043e int, \u043a\u0430\u043a \u0440\u0430\u043d\u044c\u0448\u0435, \u0430 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 (+) \u0438 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u0438 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u043a\u043e\u043d\u043a\u0430\u0442\u0435\u043d\u0430\u0446\u0438\u0438.\u00a0<\/p>\n<p>  \u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0442\u0438\u043f\u0430 \u0441 int \u043d\u0430 string \u043a\u043e\u0434 \u043d\u0435 \u0441\u043b\u043e\u043c\u0430\u043b\u043e, \u0430 \u0431\u0438\u0437\u043d\u0435\u0441-\u043b\u043e\u0433\u0438\u043a\u0443 \u0441\u043b\u043e\u043c\u0430\u043b\u043e.<\/p>\n<p>  \u0422\u0430\u043a \u0447\u0442\u043e \u043e\u0441\u0442\u0430\u0432\u043b\u044e \u044d\u0442\u043e \u0437\u0434\u0435\u0441\u044c, \u0430 \u0432\u044b \u043f\u043e\u043f\u044b\u0442\u0430\u0439\u0442\u0435\u0441\u044c \u0431\u0435\u0437 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0443\u0433\u0430\u0434\u0430\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f.\u00a0<\/p>\n<pre><code class=\"cpp\">class Program {     static void Main(string[] args)     {         Console.WriteLine($&quot;{'2' + '2' - '2' }&quot;);     } }<\/code><\/pre>\n<p>  <a href=\"http:\/\/ruvds.com\/ru-rub?utm_source=habr&amp;utm_medium=perevod&amp;utm_campaign=bratIlia&amp;utm_content=pishite_kod_po_novomu#order\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ou\/g5\/kh\/oug5kh6sjydt9llengsiebnp40w.png\"><\/a><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/company\/ruvds\/blog\/552584\/\"> https:\/\/habr.com\/ru\/company\/ruvds\/blog\/552584\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\"><a href=\"https:\/\/habr.com\/ru\/company\/ruvds\/blog\/552584\/\"><\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/dg\/ot\/eu\/dgoteuauz-prkvy1q1wigufxhc0.png\"><\/div>\n<p><\/a><\/p>\n<p>  C# \u044f \u043d\u0435 \u043b\u044e\u0431\u043b\u044e, \u043d\u043e \u043b\u044e\u0431\u043b\u044e \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0432\u0441\u0435 \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u044b \u0438 \u0432\u0435\u0441\u044c \u0441\u0430\u0445\u0430\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u043d\u0438 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e\u0442 \u043e\u0442 \u0432\u0435\u0440\u0441\u0438\u0438 \u043a \u0432\u0435\u0440\u0441\u0438\u0438.<\/p>\n<p>  \u0422\u0440\u0435\u0442\u044c\u0435\u0433\u043e \u0434\u043d\u044f \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u043b <a href=\"https:\/\/www.youtube.com\/watch?v=aUbXGs7YTGo&amp;t=1391s\">\u0432\u044b\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435 \u0411\u0438\u043b\u043b\u0430 \u0412\u0430\u0433\u043d\u0435\u0440\u0430 \u043d\u0430 NDC Conferences<\/a>, \u0433\u0434\u0435 \u043e\u043d \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u043b, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043e\u0434 \u043f\u043e-\u043d\u043e\u0432\u043e\u043c\u0443 (TM).<\/p>\n<p>  \u041e\u043d \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043c\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u0445\u043e\u0440\u043e\u0448\u0435\u0433\u043e \u0440\u0435\u0444\u0430\u043a\u0442\u043e\u0440\u0438\u043d\u0433\u0430, \u043a\u043e\u0434 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0431\u043e\u043b\u0435\u0435 \u0447\u0438\u0442\u0430\u0435\u043c\u044b\u043c, \u043d\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u0441 \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u044f \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e \u044f\u0437\u044b\u043a\u0443 \u043d\u0443\u0436\u0435\u043d \u0432\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u0439 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u043e\u0440.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-321497","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/321497","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=321497"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/321497\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=321497"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=321497"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=321497"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}