{"id":302651,"date":"2020-04-28T09:00:38","date_gmt":"2020-04-28T09:00:38","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=302651"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=302651","title":{"rendered":"\u0415\u0449\u0435 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043a\u0430\u0432\u0435\u0440\u0437\u043d\u044b\u0445 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 \u043f\u043e .NET \u0438 C#"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/498820\/\"><a href=\"http:\/\/habrahabr.ru\/post\/498820\/\" rel=\"nofollow\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/vg\/jo\/yk\/vgjoykkgosr_uuioe5tpxvj8394.jpeg\"><\/a><\/p>\n<p>  \u042f \u043f\u043e\u0434\u043e\u0431\u0440\u0430\u043b \u0434\u043b\u044f \u0432\u0430\u0441 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0445, \u043d\u043e \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0445 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 \u0438\u0437 \u043c\u0438\u0440\u0430 .NET \u0438 C#. \u041f\u043b\u044e\u0441 \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0441\u0430\u043c, \u043e\u0441\u043d\u043e\u0432\u044b\u0432\u0430\u044f\u0441\u044c \u043d\u0430 \u043a\u043d\u0438\u0433\u0430\u0445, \u0441\u0442\u0430\u0442\u044c\u044f\u0445 \u0438 \u0432\u0438\u0434\u0435\u043e \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043d\u0435 \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u0438\u0441\u044c.<br \/>  <a name=\"habracut\"><\/a><br \/>  1. \u0427\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043e \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435? (\u0435\u0441\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043e)<\/p>\n<pre><code class=\"cs\">string nullString = (string)null; Console.WriteLine (nullString is string);<\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041e\u0442\u0432\u0435\u0442<\/b>                         <\/p>\n<div class=\"spoiler_text\">False, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e Null \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0442\u0438\u043f\u0430 \u0432 runtime<br \/>  Credits: h<a href=\"http:\/\/ttps:\/\/www.dotnetcurry.com\/csharp\/1417\/csharp-common-mistakes\" rel=\"nofollow\">ttps:\/\/www.dotnetcurry.com\/csharp\/1417\/csharp-common-mistakes<\/a>  <\/div>\n<\/p><\/div>\n<p>  2. \u0427\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0432\u0435\u0434\u0435\u043d\u043e \u043d\u0430 \u044d\u043a\u0440\u0430\u043d \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u044b\u043c .NET \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c?<\/p>\n<pre><code class=\"cs\">Console.WriteLine (Math.Round(1.5)); Console.WriteLine (Math.Round(2.5));<\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041e\u0442\u0432\u0435\u0442<\/b>                         <\/p>\n<div class=\"spoiler_text\">2 \u0438 2. \u041f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043e\u043a\u0440\u0443\u0433\u043b\u0435\u043d\u0438\u0435 \u0432\u0432\u0435\u0440\u0445 \u043a \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u043c\u0443 \u0446\u0435\u043b\u043e\u043c\u0443 \u2014 \u0431\u0430\u043d\u043a\u043e\u0432\u0441\u043a\u043e\u0435 \u043e\u043a\u0440\u0443\u0433\u043b\u0435\u043d\u0438\u0435. \u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u0437\u043d\u0430\u0442\u044c \u0447\u0442\u043e Mono \u0432\u0435\u0440\u043d\u0435\u0442 2 \u0438 3.  <\/div>\n<\/p><\/div>\n<p>  3. \u0427\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u043a\u043e\u0434\u0430:<\/p>\n<pre><code class=\"cs\">f = Sum (0.1f, 0.2f); float g = Sum (0.1f, 0.2f); Console.WriteLine (f==g);<\/code><\/pre>\n<p>  a) True<br \/>  b) False<br \/>  c) \u0411\u0443\u0434\u0435\u0442 \u0432\u044b\u0431\u0440\u043e\u0448\u0435\u043d\u043e \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<br \/>  d) \u041d\u0435\u043b\u044c\u0437\u044f \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u043e (\u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043a\u0430\u043a true, \u0442\u0430\u043a \u0438 false)<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041e\u0442\u0432\u0435\u0442<\/b>                         <\/p>\n<div class=\"spoiler_text\">d<br \/>  JIT \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0441\u0443\u043c\u043c\u044b \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0431\u043e\u043b\u0435\u0435 \u0442\u043e\u0447\u043d\u043e \u0447\u0435\u043c \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0441\u0434\u0435\u043b\u0430\u0442\u044c float. \u0422\u043e \u0435\u0441\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430. \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043a\u043e\u0434 \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 \u0432 \u0440\u0430\u0437\u043d\u044b\u0445 \u0440\u0435\u0436\u0438\u043c\u0430\u0445 Debug\/Release<br \/>  Credits: <br \/>  <a href=\"https:\/\/csharpindepth.com\/Articles\/FloatingPoint\" rel=\"nofollow\">Binary floating point and .NET<\/a>  <\/div>\n<\/p><\/div>\n<p>  4. \u0427\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u043a\u043e\u0434\u0430:<\/p>\n<pre><code class=\"cs\">float price = 4.99F; int quantity = 17; float total = price * quantity; Console.WriteLine(&quot;The total price is ${0}.&quot;, total);<\/code><\/pre>\n<p>  a) The total price is $85<br \/>  b) The total price is $84.83<br \/>  c) The total price is $84<br \/>  d) The total price is $84.82999<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041e\u0442\u0432\u0435\u0442<\/b>                         <\/p>\n<div class=\"spoiler_text\">d<br \/>  Credits:<br \/>  <a href=\"https:\/\/csharpindepth.com\/Articles\/FloatingPoint\" rel=\"nofollow\">Binary floating point and .NET<\/a><br \/>  <a href=\"https:\/\/www.extremeoptimization.com\/resources\/Articles\/FPDotNetConceptsAndFormats.aspx\" rel=\"nofollow\">Floating Point in .NET part 1: Concepts and Formats<\/a>  <\/div>\n<\/p><\/div>\n<p>  5. \u041a\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043b\u0443\u0447\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u0438 \u0432 \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445? \u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u043e\u0434\u0438\u043d \u0438\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043e\u0442\u0432\u0435\u0442\u043e\u0432:<\/p>\n<p>  a) \u0412 \u0432\u0438\u0434\u0435 \u043d\u0435\u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430<br \/>  b) \u0417\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e DES<br \/>  c) \u0417\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e AES<br \/>  d) \u0417\u0430\u0445\u0435\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e MD5<br \/>  e) \u0417\u0430\u0445\u0435\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e SHA512<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041e\u0442\u0432\u0435\u0442<\/b>                         <\/p>\n<div class=\"spoiler_text\">e<br \/>  \u0412 \u043d\u0430\u0448\u0435 \u0432\u0440\u0435\u043c\u044f MD5 \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c.<br \/>  \u041a\u0441\u0442\u0430\u0442\u0438, \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438 keyed hash \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b: HMACSHA1 \u0438\u043b\u0438 MACTripleDES  <\/div>\n<\/p><\/div>\n<p>  6. \u0412 \u0441\u0440\u0435\u0434\u0435 .NET \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0442\u0430\u0439\u043c\u0435\u0440\u043e\u0432. \u041a\u0430\u043a\u043e\u0433\u043e \u0438\u0437 \u0442\u0430\u0439\u043c\u0435\u0440\u043e\u0432 \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442?<\/p>\n<p>  a) Timer \u0438\u0437 System.Windows.Forms<br \/>  b) DispatchTimer \u0438\u0437 System.Windows.Threading<br \/>  c) DispatchTimer \u0438\u0437 Windows.UI.XAML<br \/>  d) Timer \u0438\u0437 System.Timers<br \/>  e) Timer \u0438\u0437 System.Windows.Threading.Timers<br \/>  f) Timer \u0438\u0437 System.Threading<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041e\u0442\u0432\u0435\u0442<\/b>                         <\/p>\n<div class=\"spoiler_text\">e<br \/>  Credits: CLR via C# Jeffrey Richter  <\/div>\n<\/p><\/div>\n<p>  7. \u041a\u0430\u043a\u043e\u0433\u043e .NET REPL \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0432 \u0441\u0435\u0442\u0438?<\/p>\n<p>  a) dotnetfiddle.net<br \/>  b) repl.it\/languages\/csharp<br \/>  c) csharpcompiler.net<br \/>  d) dotnet.microsoft.com\/platform\/try-dotnet<br \/>  e) csharppad.com<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041e\u0442\u0432\u0435\u0442<\/b>                         <\/p>\n<div class=\"spoiler_text\">c  <\/div>\n<\/p><\/div>\n<p>  8. \u0415\u0441\u043b\u0438 \u0432\u044b \u0437\u0430\u0445\u043e\u0442\u0438\u0442\u0435 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0447\u0442\u043e \u0447\u0438\u0441\u043b\u043e \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0442\u0438\u043f\u043e\u043c long, \u0442\u043e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0432 \u043a\u043e\u043d\u0446\u0435 \u0447\u0438\u0441\u043b\u0430 \u043b\u0438\u0442\u0435\u0440\u0443 l \u0438\u043b\u0438 L. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0442\u0430\u043a: <\/p>\n<pre><code class=\"cs\">var l = 138l;<\/code><\/pre>\n<p>  \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u0430\u043a\u043e\u0439 \u043b\u0438\u0442\u0435\u0440\u044b \u043c\u043e\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0442\u0438\u043f decimal?<\/p>\n<p>  a) C \u0438\u043b\u0438 c<br \/>  b) D \u0438\u043b\u0438 d<br \/>  c) M \u0438\u043b\u0438 m<br \/>  d) E \u0438\u043b\u0438 e<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041e\u0442\u0432\u0435\u0442<\/b>                         <\/p>\n<div class=\"spoiler_text\">c  <\/div>\n<\/p><\/div>\n<p>  9. \u0427\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043e \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435 \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043a\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0435\u0433\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434:<\/p>\n<pre><code class=\"cs\">     class Program     {          static Program()         {             Console.WriteLine(&quot;Static constructor&quot;);         }           public Program()         {             Console.WriteLine(&quot;Constructor&quot;);         }          static void Main(string[] args)         {             Console.WriteLine(&quot;Main&quot;);             Console.ReadLine();         }     }<\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041e\u0442\u0432\u0435\u0442<\/b>                         <\/p>\n<div class=\"spoiler_text\">\u00abStatic constructor\u00bb \u0438 \u00abMain\u00bb<br \/>  \u0417\u043d\u0430\u0435\u0442\u0435 \u0432\u044b \u044d\u0442\u043e \u0438\u043b\u0438 \u043d\u0435\u0442, \u043d\u043e \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0432 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0434 \u0442\u0435\u043c \u043a\u0430\u043a \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u043a\u043b\u0430\u0441\u0441 \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f. \u0418 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0443\u0436\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0439 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440. \u041d\u043e \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043a\u043e\u0434 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u043e\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0438 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0439 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440 \u043d\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f.  <\/div>\n<\/p><\/div>\n<p>  10. \u0427\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0432\u0435\u0434\u0435\u043d\u043e \u043d\u0430 \u044d\u043a\u0440\u0430\u043d \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430?<\/p>\n<pre><code class=\"cs\">      [Flags]       public enum Status        {          Funny = 0x01,          Hilarious = 0x02,          Boring = 0x04,          Cool = 0x08,          Interesting = 0x10,          Informative = 0x20,          Error = 0x40       }    public static void Main (string[] args) {          var code = 24;          Console.WriteLine (String.Format(&quot;This Quiz is: {0}&quot;,  (Status)code));       }<\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041e\u0442\u0432\u0435\u0442<\/b>                         <\/p>\n<div class=\"spoiler_text\">This Quiz is: Cool Interesting<\/p>\n<p>  24 \u0432 \u0434\u0432\u043e\u0438\u0447\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0431\u0443\u0434\u0435\u0442 0011000<br \/>  \u0417\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0446\u0438\u0444\u0440\u044b \u0432 \u0441\u0442\u043e\u043b\u0431\u0438\u043a<br \/>   Funny = 0 <br \/>   Hilarious = 0 <br \/>   Boring = 0 <br \/>   Cool = 1 <br \/>   Interesting = 1 <br \/>   Informative = 0 <br \/>   Error = 0 <br \/>  Credits:<br \/>  <a href=\"http:\/\/www.strychnine.co.uk\/2016\/09\/c-often-surprises-part-000001\/\" rel=\"nofollow\">C# Often Surprises Me, part: 000001<\/a><br \/>  <a href=\"https:\/\/docs.microsoft.com\/en-us\/dotnet\/csharp\/language-reference\/builtin-types\/enum\" rel=\"nofollow\">Enumeration types (C# reference)<\/a>  <\/div>\n<\/p><\/div>\n<p>  11. \u0412 \u0447\u0435\u043c \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u043c\u0435\u0436\u0434\u0443 String \u0438 string?<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041e\u0442\u0432\u0435\u0442<\/b>                         <\/p>\n<div class=\"spoiler_text\">String \u044d\u0442\u043e .NET \u0430\u043b\u0438\u0430\u0441 \u0434\u043b\u044f c# string. \u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a \u0436\u0435 \u043a\u0430\u043a short \u0438 int \u0432 C# \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f Int16 \u0438 Int32 \u0432 .NET<br \/>  \u041f\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0441\u044b\u043b\u043a\u0435 \u043d\u0430\u0439\u0434\u0435\u0442\u0435 \u0441\u0442\u0430\u0442\u044c\u044e \u0441 \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u043c \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043c <a href=\"https:\/\/programmingwithmosh.com\/net\/difference-between-string-and-string-in-c\/\" rel=\"nofollow\">Difference between string and String in C#<\/a>  <\/div>\n<\/p><\/div>\n<p>  12. \u0427\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 (\u0438\u043b\u0438 \u043a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u043b) \u0441\u0438\u043c\u0432\u043e\u043b Visual Studio?<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041e\u0442\u0432\u0435\u0442<\/b>                         <\/p>\n<div class=\"spoiler_text\">\u041f\u0435\u0440\u0435\u0441\u0435\u0447\u0435\u043d\u0438\u0435 \u043c\u0438\u0440\u043e\u0432 Intranet \u0438 Internet<br \/>  Credits: <a href=\"https:\/\/www.mobilize.net\/blog\/that-visual-studio-logo-its-not-what-you-think-it-is\" rel=\"nofollow\">That Visual Studio logo&#8212;it&#8217;s not what you think it is<\/a>  <\/div>\n<\/p><\/div>\n<p>  13. \u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u044c\u0442\u0435:<br \/>  Async\/await <br \/>  Try\/catch <br \/>  ValidateAntiForgeryToken <br \/>  \u0441\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c\u0438 \u0430\u0431\u0431\u0440\u0435\u0432\u0438\u0430\u0442\u0443\u0440\u0430\u043c\u0438:<br \/>  <b>TAP<\/b>, <b>SEH<\/b>, <b>STP<\/b><\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041e\u0442\u0432\u0435\u0442<\/b>                         <\/p>\n<div class=\"spoiler_text\">Async\/await -&gt; TAP (Task asynchronous programming model)<br \/>  Try\/catch -&gt; SEH (Structured Exception Handling)<br \/>  ValidateAntiForgeryToken -&gt; STP (Synchronizer Token Pattern)  <\/div>\n<\/p><\/div>\n<p>  14. \u0427\u0442\u043e \u0438\u0437 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f .NET CMS?<\/p>\n<p>  a) mojoPortal<br \/>  b) N2 CMS<br \/>  c) Atomic CMS<br \/>  d) Composite C1<br \/>  e) Concrete5<br \/>  f) Piranha CMS<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041e\u0442\u0432\u0435\u0442<\/b>                         <\/p>\n<div class=\"spoiler_text\">e  <\/div>\n<\/p><\/div>\n<p>  15. \u0427\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043e \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435? (\u0435\u0441\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043e)<\/p>\n<pre><code class=\"cs\">        class Program     {         private static int y = x;         private static int x = 5;          static void Main(string[] args)         {             Console.WriteLine(y);             Console.ReadLine();         }     } <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041e\u0442\u0432\u0435\u0442<\/b>                         <\/p>\n<div class=\"spoiler_text\"> 0<br \/>  \u041f\u043e\u0440\u044f\u0434\u043e\u043a \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438\u043d\u043e\u0433\u0434\u0430 \u0438\u0433\u0440\u0430\u0435\u0442 \u0440\u043e\u043b\u044c  <\/div>\n<\/p><\/div>\n<p>  16. \u041a\u0430\u043a\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430 Concurrent Collection \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0432 .Net<\/p>\n<p>  a) ConcurrentQueue <br \/>  b) ConcurrentStack <br \/>  c) ConcurrentList <br \/>  d) ConcurrentDictionary <br \/>  e) ConcurrentBag<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041e\u0442\u0432\u0435\u0442<\/b>                         <\/p>\n<div class=\"spoiler_text\">c  <\/div>\n<\/p><\/div>\n<p>  17. \u041a\u0430\u043a\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0432\u044b\u0437\u043e\u0432\u0430 async \u043a\u043e\u0434\u0430 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0442\u0438\u0442\u0435\u043b\u0435\u043d (\u0440\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u044d\u0442\u043e \u0432 \u0440\u0435\u0434\u043a\u0438\u0445 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f\u0445 \u043a\u043e\u0433\u0434\u0430 await \u043d\u0443 \u043d\u0438\u043a\u0430\u043a \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c):<\/p>\n<p>  a) Wait()<br \/>  b) Result()<br \/>  c) GetAwaiter().GetResult()<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041e\u0442\u0432\u0435\u0442<\/b>                         <\/p>\n<div class=\"spoiler_text\">c<br \/>  Wait \u0438 Result \u0432\u044b\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u044e\u0442 aggregate exception \u0432\u043c\u0435\u0441\u0442\u043e \u043e\u0431\u044b\u0447\u043d\u043e\u0433\u043e<br \/>  Credits: <a href=\"https:\/\/www.youtube.com\/watch?v=J0mcYVxJEl0\" rel=\"nofollow\">Correcting Common Async\/Await Mistakes in .NET \u2014 Brandon Minnick<\/a>  <\/div>\n<\/p><\/div>\n<\/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\/post\/498820\/\"> https:\/\/habr.com\/ru\/post\/498820\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/498820\/\"><a href=\"http:\/\/habrahabr.ru\/post\/498820\/\" rel=\"nofollow\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/vg\/jo\/yk\/vgjoykkgosr_uuioe5tpxvj8394.jpeg\"><\/a><\/p>\n<p>  \u042f \u043f\u043e\u0434\u043e\u0431\u0440\u0430\u043b \u0434\u043b\u044f \u0432\u0430\u0441 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0445, \u043d\u043e \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0445 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 \u0438\u0437 \u043c\u0438\u0440\u0430 .NET \u0438 C#. \u041f\u043b\u044e\u0441 \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0441\u0430\u043c, \u043e\u0441\u043d\u043e\u0432\u044b\u0432\u0430\u044f\u0441\u044c \u043d\u0430 \u043a\u043d\u0438\u0433\u0430\u0445, \u0441\u0442\u0430\u0442\u044c\u044f\u0445 \u0438 \u0432\u0438\u0434\u0435\u043e \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043d\u0435 \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u0438\u0441\u044c.  <\/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-302651","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/302651","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=302651"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/302651\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=302651"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=302651"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=302651"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}