{"id":494123,"date":"2026-09-09T17:35:37","date_gmt":"2026-09-09T17:35:37","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=494123"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=494123","title":{"rendered":"\u0410 \u0447\u0451, \u0442\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e? \u041d\u0435\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 C#"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0412 C# \u0435\u0441\u0442\u044c \u0447\u0435\u0442\u044b\u0440\u0435 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0445 \u0441\u043b\u043e\u0432\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0435\u0442 \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438. \u041a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0438\u0445 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442.<\/p>\n<p>\u041e\u0434\u043d\u043e \u0438\u0437 \u043d\u0438\u0445 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u043b\u044e\u0431\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435, \u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 Windows. \u041d\u0430 Linux \u0442\u0430 \u0436\u0435 \u0441\u0431\u043e\u0440\u043a\u0430 \u043f\u0430\u0434\u0430\u0435\u0442. \u0414\u0430\u043b\u044c\u0448\u0435 \u2014 \u043a\u0430\u043a \u043e\u0431\u044a\u0435\u043a\u0442 \u043c\u0435\u043d\u044f\u0435\u0442 \u0441\u0432\u043e\u0439 \u0442\u0438\u043f \u043d\u0430 \u0445\u043e\u0434\u0443 \u0438 \u0447\u0442\u043e \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043f\u0440\u0438 \u0432\u044b\u0437\u043e\u0432\u0435 \u043c\u0435\u0442\u043e\u0434\u0430 \u0443 \u043f\u0443\u0441\u0442\u043e\u0439 \u0441\u0441\u044b\u043b\u043a\u0438.<\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u043e \u043d\u0430 \u0447\u0435\u0442\u044b\u0440\u0451\u0445 \u043c\u0430\u0448\u0438\u043d\u0430\u0445 x64 \u043f\u043e\u0434 Windows, \u043d\u0430 .NET 8, 9 \u0438 10, \u0441\u0431\u043e\u0440\u043a\u0438 \u043e\u0442 8.0.11 \u0434\u043e 10.0.12.<\/p>\n<h3>1. __makeref, __reftype, __refvalue<\/h3>\n<h4>\u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a<\/h4>\n<p>__makeref \u0441\u043e\u0437\u0434\u0430\u0451\u0442 <strong>TypedReference<\/strong> \u2014 \u043f\u0430\u0440\u0443 \u0438\u0437 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f \u043d\u0430 \u0442\u0438\u043f. __reftype \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0442\u0438\u043f \u0438\u0437 \u044d\u0442\u043e\u0439 \u043f\u0430\u0440\u044b, __refvalue \u0447\u0438\u0442\u0430\u0435\u0442 \u0438 \u043f\u0438\u0448\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435.<\/p>\n<pre><code class=\"cs\">int number = 42;string text = \"\u0421\u0435\u043a\u0440\u0435\u0442\"; TypedReference toNumber = __makeref(number);TypedReference toText = __makeref(text); Console.WriteLine(__reftype(toNumber).Name);   \/\/ Int32Console.WriteLine(__reftype(toText).Name);     \/\/ String __refvalue(toNumber, int) = 100;Console.WriteLine(number);                     \/\/ 100<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:87px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0422\u0438\u043f <a href=\"https:\/\/learn.microsoft.com\/dotnet\/api\/system.typedreference\" rel=\"noopener nofollow\">TypedReference<\/a> \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0435\u0441\u0442\u044c. __makeref,<strong> <\/strong>__reftype \u0438 __refvalue \u2014 \u043d\u0435\u0442.<\/p>\n<h4>\u0427\u0442\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u043e\u0442\u0447\u0451\u0442<\/h4>\n<pre><code class=\"cs\">\u0422\u0438\u043f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0431\u0435\u0437 \u0432\u044b\u0437\u043e\u0432\u0430 GetType   int       __reftype \u0434\u0430\u0451\u0442 Int32  string    __reftype \u0434\u0430\u0451\u0442 String  DateTime  __reftype \u0434\u0430\u0451\u0442 DateTime \u0420\u0430\u0437\u043d\u0438\u0446\u0430 \u0441 GetType   \u0447\u0438\u0441\u043b\u043e \u0434\u043e \u0437\u0430\u043f\u0438\u0441\u0438: 42  \u043f\u043e\u0441\u043b\u0435 __refvalue: 100  TypedReference.ToObject: \u0421\u0435\u043a\u0440\u0435\u0442<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e \u043d\u0430 .NET 8, 9 \u0438 10 \u0438 \u043d\u0430 \u0432\u0441\u0435\u0445 \u0447\u0435\u0442\u044b\u0440\u0451\u0445 \u043c\u0430\u0448\u0438\u043d\u0430\u0445.<\/p>\n<h4>\u041f\u0440\u0438\u0447\u0438\u043d\u0430<\/h4>\n<p>GetType \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u043c. \u0414\u043b\u044f \u0437\u043d\u0430\u0447\u0438\u043c\u043e\u0433\u043e \u0442\u0438\u043f\u0430 \u044d\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u0443\u043f\u0430\u043a\u043e\u0432\u043a\u0443: \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442 \u0432 \u043a\u0443\u0447\u0443 \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0442\u043e\u043c \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u0432\u043e\u0439 \u0442\u0438\u043f.<\/p>\n<p>__reftype \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439. \u0422\u0438\u043f \u0431\u0435\u0440\u0451\u0442\u0441\u044f \u0438\u0437 \u0432\u0442\u043e\u0440\u043e\u0439 \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u044b TypedReference, \u043a\u0443\u0434\u0430 \u0435\u0433\u043e \u0437\u0430\u043f\u0438\u0441\u0430\u043b __makeref, \u0438 \u0432 \u043a\u0443\u0447\u0443 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442.<\/p>\n<p>\u0422\u0430\u043a \u0436\u0435 \u0443\u0441\u0442\u0440\u043e\u0435\u043d\u0430 \u0438 \u0437\u0430\u043f\u0438\u0441\u044c \u0447\u0435\u0440\u0435\u0437 __refvalue: \u0432 \u043f\u0430\u0440\u0435 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u0441\u0430\u043c\u0443 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e, \u0430 \u043d\u0435 \u043a\u043e\u043f\u0438\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f. \u0412 \u0441\u0442\u0440\u043e\u043a\u0435 __refvalue(toNumber, int) = 100; \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f number \u043d\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0430, \u0430 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0438\u043c\u0435\u043d\u043d\u043e \u043e\u043d\u0430.<\/p>\n<h4>\u0413\u0434\u0435 \u043b\u0435\u0433\u043a\u043e \u043e\u0448\u0438\u0431\u0438\u0442\u044c\u0441\u044f<\/h4>\n<p>TypedReference \u2014 \u044d\u0442\u043e ref struct, \u0438 \u043e\u0442\u0441\u044e\u0434\u0430 \u0432\u0441\u0435 \u0437\u0430\u043f\u0440\u0435\u0442\u044b: \u0435\u0433\u043e \u043d\u0435\u043b\u044c\u0437\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432 \u043f\u043e\u043b\u0435, \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c \u0432 \u043c\u0430\u0441\u0441\u0438\u0432 \u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0432 \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434. \u041e\u043d \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0441\u0442\u0435\u043a\u0435 \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u0445 \u0432\u044b\u0437\u043e\u0432\u0430, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u0445\u0440\u0430\u043d\u0438\u0442 \u043f\u0440\u044f\u043c\u043e\u0439 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e.<\/p>\n<h4>\u0413\u0434\u0435 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u0442\u0441\u044f<\/h4>\n<p>\u0412 \u0440\u0435\u0444\u043b\u0435\u043a\u0441\u0438\u0438. \u041c\u0435\u0442\u043e\u0434\u044b <a href=\"https:\/\/github.com\/dotnet\/runtime\/blob\/60629d14374c56f1cb51819049ad1fa529307f8d\/src\/libraries\/System.Private.CoreLib\/src\/System\/Reflection\/FieldInfo.cs#L72\" rel=\"noopener nofollow\">FieldInfo.SetValueDirect \u0438 GetValueDirect<\/a> \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0442 TypedReference: \u0447\u0435\u0440\u0435\u0437 \u043d\u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u043e\u043b\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b, \u043d\u0435 \u0443\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u044f \u0435\u0451 \u0432 \u043e\u0431\u044a\u0435\u043a\u0442. \u041e\u0431\u044b\u0447\u043d\u044b\u0439 SetValue \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 object, \u0442\u043e \u0435\u0441\u0442\u044c \u0443\u043f\u0430\u043a\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u043a\u043e\u043f\u0438\u044e, \u0438 \u0437\u0430\u043f\u0438\u0441\u044c \u0443\u0445\u043e\u0434\u0438\u0442 \u0432 \u043d\u0435\u0451, \u0430 \u043d\u0435 \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443.<\/p>\n<p>__reftype \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u0438 TypedReference.GetHashCode: \u0438\u043d\u0430\u0447\u0435 \u0442\u0438\u043f \u043e\u0442\u0442\u0443\u0434\u0430 \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c.<\/p>\n<h3>2. \u0421\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0432\u0435\u0437\u0434\u0435, \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 Windows<\/h3>\n<h4>\u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a<\/h4>\n<p>__arglist \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u0442 \u043c\u0435\u0442\u043e\u0434 \u0441 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c \u0447\u0438\u0441\u043b\u043e\u043c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0431\u0435\u0437 params \u0438 \u0431\u0435\u0437 \u043c\u0430\u0441\u0441\u0438\u0432\u0430. \u0410\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u044f\u044e\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 <a href=\"https:\/\/learn.microsoft.com\/dotnet\/api\/system.argiterator\" rel=\"noopener nofollow\">ArgIterator<\/a>:<\/p>\n<pre><code class=\"cs\">private static string Join(__arglist){    ArgIterator iterator = new(__arglist);    string result = string.Empty;     while (iterator.GetRemainingCount() &gt; 0)    {        TypedReference argument = iterator.GetNextArg();        result += __reftype(argument).Name + \" = \"                + TypedReference.ToObject(argument) + \"; \";    }     return result;} \/\/ \u0432\u044b\u0437\u043e\u0432Join(__arglist(1, \"\u0434\u0432\u0430\", 3.5));<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421\u0431\u043e\u0440\u043a\u0430 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u0431\u0435\u0437 \u0435\u0434\u0438\u043d\u043e\u0433\u043e \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f.<\/p>\n<h4>\u0427\u0442\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u043e\u0442\u0447\u0451\u0442<\/h4>\n<pre><code class=\"cs\">\u0421\u0438\u0441\u0442\u0435\u043c\u0430: Microsoft Windows 10.0.17763, X64   \u0432\u044b\u0437\u043e\u0432 \u043f\u0440\u043e\u0448\u0451\u043b: Int32 = 1; String = \u0434\u0432\u0430; Double = 3,5;<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0422\u0430 \u0436\u0435 \u0441\u0431\u043e\u0440\u043a\u0430 \u043d\u0430 Linux:<\/p>\n<pre><code class=\"cs\">\u0421\u0438\u0441\u0442\u0435\u043c\u0430: Ubuntu 24.04.4 LTS, X64   \u0432\u044b\u0437\u043e\u0432 \u043d\u0435 \u043f\u0440\u043e\u0448\u0451\u043b  \u0442\u0438\u043f \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f: System.InvalidProgramException  \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435:      Vararg calling convention not supported.<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>\u041f\u0440\u0438\u0447\u0438\u043d\u0430<\/h4>\n<p>\u0412\u0441\u0451 \u0440\u0435\u0448\u0430\u0435\u0442 \u043e\u0434\u043d\u0430 <a href=\"https:\/\/github.com\/dotnet\/runtime\/blob\/60629d14374c56f1cb51819049ad1fa529307f8d\/src\/coreclr\/jit\/target.h#L31\" rel=\"noopener nofollow\">\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0432 \u0434\u0436\u0438\u0442\u0435<\/a>:<\/p>\n<pre><code class=\"cs\">\/\/ Native Varargs are not supported on Unix (all architectures) and Windows ARMinline bool compFeatureVarArg(){    return TargetOS::IsWindows &amp;&amp; !TargetArchitecture::IsArm32;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041a\u043e\u0433\u0434\u0430 \u043e\u043d\u0430 \u043d\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f, \u0434\u0436\u0438\u0442 <a href=\"https:\/\/github.com\/dotnet\/runtime\/blob\/60629d14374c56f1cb51819049ad1fa529307f8d\/src\/coreclr\/jit\/importercalls.cpp#L566\" rel=\"noopener nofollow\">\u043e\u0442\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u044b\u0437\u043e\u0432<\/a>:<\/p>\n<pre><code class=\"cs\">if (!compFeatureVarArg() &amp;&amp; ((sig-&gt;callConv &amp; CORINFO_CALLCONV_MASK) == CORINFO_CALLCONV_VARARG ||                             (sig-&gt;callConv &amp; CORINFO_CALLCONV_MASK) == CORINFO_CALLCONV_NATIVEVARARG)){    BADCODE(\"Varargs not supported.\");}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0414\u0436\u0438\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0441\u043e\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0435 \u0432\u044b\u0437\u043e\u0432\u0430 \u043d\u0435 \u0442\u043e\u0433\u0434\u0430, \u043a\u043e\u0433\u0434\u0430 \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442 \u043c\u0435\u0442\u043e\u0434 \u0441 __arglist, \u0430 \u0442\u043e\u0433\u0434\u0430, \u043a\u043e\u0433\u0434\u0430 \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442 \u043c\u0435\u0442\u043e\u0434, \u043e\u0442\u043a\u0443\u0434\u0430 \u0435\u0433\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u044e\u0442. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0430\u0434\u0430\u0435\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u044e\u0449\u0438\u0439 \u043a\u043e\u0434, \u0430 \u043d\u0435 \u0441\u0430\u043c \u043c\u0435\u0442\u043e\u0434.<\/p>\n<p>\u0421\u043e\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0435 \u0432\u044b\u0437\u043e\u0432\u0430 \u0441 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c \u0447\u0438\u0441\u043b\u043e\u043c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u043f\u0440\u0438\u0448\u043b\u043e \u0438\u0437 C, \u0438 \u043d\u0430 Unix \u0435\u0433\u043e \u0432 .NET \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043b\u0438.<\/p>\n<h4>\u0413\u0434\u0435 \u043b\u0435\u0433\u043a\u043e \u043e\u0448\u0438\u0431\u0438\u0442\u044c\u0441\u044f<\/h4>\n<p>\u0412\u044b\u0437\u043e\u0432 \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u043d\u0435\u0441\u0442\u0438 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434 \u0438 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043d\u0430\u0434 \u043d\u0438\u043c [MethodImpl(MethodImplOptions.NoInlining)]. \u0414\u0436\u0438\u0442 \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442 \u043c\u0435\u0442\u043e\u0434 \u0446\u0435\u043b\u0438\u043a\u043e\u043c, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0438 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u043c \u0432\u044b\u0437\u043e\u0432\u0435 \u043e\u043d \u043e\u0442\u043a\u0430\u0436\u0435\u0442\u0441\u044f \u043e\u0442 \u0432\u0441\u0435\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430, \u043a\u0443\u0434\u0430 \u0442\u043e\u0442 \u043f\u043e\u043f\u0430\u043b, \u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0443\u043f\u0430\u0434\u0451\u0442 \u0434\u043e \u043f\u0435\u0440\u0432\u043e\u0439 \u0432\u044b\u0432\u0435\u0434\u0435\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u2014 \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u0432\u044b\u0437\u043e\u0432 \u043e\u0431\u0451\u0440\u043d\u0443\u0442 \u0432 try.<\/p>\n<p>\u041c\u0435\u0442\u043e\u0434 \u0441 __arglist \u043d\u0435\u043b\u044c\u0437\u044f \u043e\u0431\u044a\u044f\u0432\u0438\u0442\u044c \u0432 \u043e\u0431\u043e\u0431\u0449\u0451\u043d\u043d\u043e\u043c \u0442\u0438\u043f\u0435: \u0441\u0440\u0435\u0434\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0442\u0430\u043a\u043e\u0435 \u043d\u0435 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442.<\/p>\n<h4>\u0413\u0434\u0435 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u0442\u0441\u044f<\/h4>\n<p>\u041f\u043e\u0438\u0441\u043a \u043f\u043e \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0430\u043c .NET \u043d\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u0442 \u043d\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430 \u0441 __arglist. \u041e\u043d\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0440\u0430\u0434\u0438 \u0441\u043e\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u044f \u0432\u044b\u0437\u043e\u0432\u0430 \u0438\u0437 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0430 CLI: \u0434\u0440\u0443\u0433\u0438\u0435 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u044b \u043f\u043e\u0434 \u044d\u0442\u0443 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0443 \u0443\u043c\u0435\u044e\u0442 \u0432\u044b\u0434\u0430\u0432\u0430\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u0434, \u0438 \u0440\u0430\u043d\u0442\u0430\u0439\u043c \u0434\u043e\u043b\u0436\u0435\u043d \u0435\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c. \u041d\u0430 Unix \u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u0441\u0434\u0435\u043b\u0430\u043b\u0438.<\/p>\n<h3>3. \u041c\u0430\u0441\u0441\u0438\u0432 \u0443\u0432\u0435\u0440\u0435\u043d, \u0447\u0442\u043e \u043e\u043d \u0441\u0442\u0440\u043e\u043a\u0430<\/h3>\n<h4>\u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a<\/h4>\n<p>\u0423 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0432 \u043a\u0443\u0447\u0435 \u043f\u0435\u0440\u0435\u0434 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0438\u0434\u0443\u0442 \u0434\u0432\u0430 \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u044b\u0445 \u043f\u043e\u043b\u044f \u043f\u043e 8 \u0431\u0430\u0439\u0442: \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0434\u043b\u044f \u0431\u043b\u043e\u043a\u0430 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0438 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u043c\u0435\u0442\u043e\u0434\u043e\u0432. \u0421\u0430\u043c\u0430 \u0442\u0430\u0431\u043b\u0438\u0446\u0430 <a href=\"https:\/\/github.com\/dotnet\/runtime\/blob\/60629d14374c56f1cb51819049ad1fa529307f8d\/src\/coreclr\/System.Private.CoreLib\/src\/System\/Runtime\/CompilerServices\/RuntimeHelpers.CoreCLR.cs#L671\" rel=\"noopener nofollow\">\u043e\u043f\u0438\u0441\u0430\u043d\u0430 \u043d\u0430 C#<\/a> \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043e\u0439 \u0441 \u044f\u0432\u043d\u044b\u043c\u0438 \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u044f\u043c\u0438. \u0415\u0441\u043b\u0438 \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u044d\u0442\u043e \u043c\u0435\u0441\u0442\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0442\u0438\u043f\u0430, \u0440\u0430\u043d\u0442\u0430\u0439\u043c \u043d\u0430\u0447\u043d\u0451\u0442 \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u043e\u0431\u044a\u0435\u043a\u0442 \u044d\u0442\u0438\u043c \u0442\u0438\u043f\u043e\u043c:<\/p>\n<pre><code class=\"cs\">nint original = MethodTable(numbers); SetMethodTable(numbers, MethodTable(sample));Console.WriteLine(numbers.GetType());SetMethodTable(numbers, original);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>\u0427\u0442\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u043e\u0442\u0447\u0451\u0442<\/h4>\n<pre><code class=\"cs\">\u0414\u043e \u0437\u0430\u043c\u0435\u043d\u044b  \u043c\u0430\u0441\u0441\u0438\u0432 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442: System.Int32[]  \u0441\u0442\u0440\u043e\u043a\u0430 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442: System.String \u041f\u043e\u0441\u043b\u0435 \u0437\u0430\u043c\u0435\u043d\u044b  \u043c\u0430\u0441\u0441\u0438\u0432 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442: System.String  \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u043a\u0430\u043a \u0441\u0442\u0440\u043e\u043a\u0430: ..o   (\u0434\u043b\u0438\u043d\u0430 3) \u041f\u043e\u0441\u043b\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0430  \u043c\u0430\u0441\u0441\u0438\u0432 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442: System.Int32[]  \u043f\u0435\u0440\u0432\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442:  111  \u0441\u0431\u043e\u0440\u043a\u0430 \u043c\u0443\u0441\u043e\u0440\u0430 \u043f\u0440\u043e\u0448\u043b\u0430, \u043a\u0443\u0447\u0430 \u0446\u0435\u043b\u0430<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>\u041f\u0440\u0438\u0447\u0438\u043d\u0430<\/h4>\n<p>\u041c\u0430\u0441\u0441\u0438\u0432 \u0441\u043e\u0437\u0434\u0430\u043d \u0438\u0437 \u0442\u0440\u0451\u0445 \u0447\u0438\u0441\u0435\u043b: 111, 222, 333. \u0421\u0440\u0430\u0437\u0443 \u0437\u0430 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u043c \u043d\u0430 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0443 \u0441\u0442\u0440\u043e\u043a\u0438 \u0437\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u0434\u043b\u0438\u043d\u0430 \u0432 \u0447\u0435\u0442\u044b\u0440\u0451\u0445 \u0431\u0430\u0439\u0442\u0430\u0445, \u0430 \u0443 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u043f\u043e\u0434 \u0434\u043b\u0438\u043d\u0443 \u043e\u0442\u0432\u0435\u0434\u0435\u043d\u043e \u0432\u043e\u0441\u0435\u043c\u044c. \u0421\u0442\u0440\u043e\u043a\u0430 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043b\u0430 \u043f\u0435\u0440\u0432\u044b\u0435 \u0447\u0435\u0442\u044b\u0440\u0435 \u0431\u0430\u0439\u0442\u0430 \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0430 \u0434\u043b\u0438\u043d\u0443 3.<\/p>\n<p>\u0421\u0438\u043c\u0432\u043e\u043b\u044b \u0441\u0442\u0440\u043e\u043a\u0430 \u0447\u0438\u0442\u0430\u0435\u0442 \u0441\u0440\u0430\u0437\u0443 \u0437\u0430 \u0441\u0432\u043e\u0438\u043c\u0438 \u0447\u0435\u0442\u044b\u0440\u044c\u043c\u044f \u0431\u0430\u0439\u0442\u0430\u043c\u0438 \u0434\u043b\u0438\u043d\u044b. \u0422\u0430\u043c \u0443 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0435\u0449\u0451 \u043d\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u0430 \u043e\u0441\u0442\u0430\u0432\u0448\u0438\u0435\u0441\u044f \u0447\u0435\u0442\u044b\u0440\u0435 \u0431\u0430\u0439\u0442\u0430 \u0435\u0433\u043e \u0434\u043b\u0438\u043d\u044b, \u0438 \u0432 \u043d\u0438\u0445 \u043d\u0443\u043b\u0438: \u043e\u0442\u0441\u044e\u0434\u0430 \u0434\u0432\u0430 \u043f\u0435\u0440\u0432\u044b\u0445 \u0441\u0438\u043c\u0432\u043e\u043b\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0442\u0447\u0451\u0442 \u0437\u0430\u043c\u0435\u043d\u0438\u043b \u0442\u043e\u0447\u043a\u0430\u043c\u0438. \u0422\u0440\u0435\u0442\u0438\u0439 \u0441\u0438\u043c\u0432\u043e\u043b \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0443\u0436\u0435 \u043d\u0430 \u043f\u0435\u0440\u0432\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u043c\u0430\u0441\u0441\u0438\u0432\u0430: 111, \u0430 \u043a\u043e\u0434 111 \u0432 \u042e\u043d\u0438\u043a\u043e\u0434\u0435 \u2014 \u043b\u0430\u0442\u0438\u043d\u0441\u043a\u0430\u044f o.<\/p>\n<h4>\u0413\u0434\u0435 \u043b\u0435\u0433\u043a\u043e \u043e\u0448\u0438\u0431\u0438\u0442\u044c\u0441\u044f<\/h4>\n<p>\u041e\u0431\u044a\u0435\u043a\u0442 \u0441 \u0437\u0430\u043c\u0435\u043d\u0451\u043d\u043d\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u0435\u0439 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0440\u043e\u0432\u043d\u043e \u0434\u0432\u0435 \u0441\u0442\u0440\u043e\u043a\u0438. \u0417\u0430\u043c\u0435\u043d\u0430 \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0442 \u0438\u0434\u0443\u0442 \u0432 \u043e\u0434\u043d\u043e\u043c \u043c\u0435\u0442\u043e\u0434\u0435, \u043c\u0435\u0436\u0434\u0443 \u043d\u0438\u043c\u0438 \u043d\u0435\u0442 \u043d\u0438 \u0432\u044b\u0445\u043e\u0434\u0430, \u043d\u0438 \u0432\u044b\u0437\u043e\u0432\u0430 \u0441\u0431\u043e\u0440\u043a\u0438 \u043c\u0443\u0441\u043e\u0440\u0430. \u0415\u0441\u043b\u0438 \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043e\u0431\u044a\u0435\u043a\u0442 \u0432 \u0442\u0430\u043a\u043e\u043c \u0432\u0438\u0434\u0435, \u0441\u0431\u043e\u0440\u0449\u0438\u043a \u043c\u0443\u0441\u043e\u0440\u0430 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0435\u0442 \u0435\u0433\u043e \u043f\u043e\u043b\u044f \u043f\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044e \u0447\u0443\u0436\u043e\u0433\u043e \u0442\u0438\u043f\u0430 \u0438 \u0443\u0440\u043e\u043d\u0438\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441.<\/p>\n<p>\u041e\u0442\u0447\u0451\u0442 \u043f\u043e\u0441\u043b\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0430 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u0441\u0431\u043e\u0440\u043a\u0443 \u043c\u0443\u0441\u043e\u0440\u0430 \u0438 \u0443\u0431\u0435\u0436\u0434\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043d\u0435 \u0443\u043f\u0430\u043b. \u0422\u043e\u0442 \u0436\u0435 \u043e\u0442\u0447\u0451\u0442 \u0441\u043d\u044f\u0442 \u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u043e\u043c \u0441\u0431\u043e\u0440\u0449\u0438\u043a\u0435: \u043e\u043d \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0435\u0442 \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0438\u043d\u0430\u0447\u0435.<\/p>\n<h4>\u0413\u0434\u0435 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u0442\u0441\u044f<\/h4>\n<p>\u0412 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 .NET \u0442\u0430\u043a\u043e\u0439 \u0437\u0430\u043c\u0435\u043d\u044b \u043d\u0435\u0442, \u0438 \u043f\u043e\u043b\u044c\u0437\u0430 \u043e\u0442 \u043d\u0435\u0451 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u0430: \u043f\u043e\u043d\u044f\u0442\u044c, \u0438\u0437 \u0447\u0435\u0433\u043e \u0441\u043e\u0431\u0440\u0430\u043d \u043e\u0431\u044a\u0435\u043a\u0442. \u041f\u043e\u0445\u043e\u0436\u0438\u043c \u043f\u0440\u0438\u0451\u043c\u043e\u043c \u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a\u0438 \u0438 \u043f\u0440\u043e\u0444\u0438\u043b\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0447\u0443\u0436\u043e\u0439 \u043e\u0431\u044a\u0435\u043a\u0442, \u043d\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u044f \u0435\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u043e\u0432.<\/p>\n<h3>4. \u041e\u0431\u044a\u0435\u043a\u0442 \u0432\u043c\u0435\u0441\u0442\u043e \u0443\u0441\u043b\u043e\u0432\u0438\u044f<\/h3>\n<h4>\u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a<\/h4>\n<p>\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b true \u0438 false \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0436\u0430\u044e\u0442\u0441\u044f \u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b, \u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0430\u0440\u043e\u0439:<\/p>\n<pre><code class=\"cs\">public static bool operator true(Flag flag) =&gt; flag._value;public static bool operator false(Flag flag) =&gt; !flag._value; public static Flag operator &amp;(Flag left, Flag right)    =&gt; new(left._value &amp;&amp; right._value);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u0443\u0441\u043b\u043e\u0432\u0438\u0438 \u0432\u043c\u0435\u0441\u0442\u043e bool, \u0445\u043e\u0442\u044f \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043a bool \u0443 \u0442\u0438\u043f\u0430 \u043d\u0435\u0442.<\/p>\n<h4>\u0427\u0442\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u043e\u0442\u0447\u0451\u0442<\/h4>\n<pre><code class=\"cs\">  if (yes)                \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u043b  if (no)                 \u043d\u0435 \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u043b  while \u0441 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u043c        \u043e\u0431\u043e\u0440\u043e\u0442\u043e\u0432 3  \u0442\u0435\u0440\u043d\u0430\u0440\u043d\u044b\u0439 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440      \u0432\u0435\u0442\u043a\u0430 \u0434\u0430   yes &amp;&amp; no               \u043d\u0435\u0442  yes || no               \u0434\u0430<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>\u041f\u0440\u0438\u0447\u0438\u043d\u0430<\/h4>\n<p>\u041f\u0430\u0440\u0430 true \u0438 false \u043d\u0443\u0436\u043d\u0430 \u0440\u0430\u0434\u0438 \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u0445 &amp;&amp; \u0438 || \u0434\u043b\u044f \u0441\u0432\u043e\u0438\u0445 \u0442\u0438\u043f\u043e\u0432. \u041a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442 \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u0439 &amp;&amp; \u0438\u0437 \u0442\u0440\u0451\u0445 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u0432: &amp; \u0441\u0447\u0438\u0442\u0430\u0435\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442, \u0430 true \u0438 false \u0440\u0435\u0448\u0430\u044e\u0442, \u043d\u0443\u0436\u043d\u043e \u043b\u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0442\u044c \u043f\u0440\u0430\u0432\u044b\u0439 \u043e\u043f\u0435\u0440\u0430\u043d\u0434.<\/p>\n<p>\u0421\u0434\u0435\u043b\u0430\u043b\u0438 \u044d\u0442\u043e \u0434\u043b\u044f \u0442\u0438\u043f\u043e\u0432 \u0432\u0440\u043e\u0434\u0435 <a href=\"https:\/\/learn.microsoft.com\/dotnet\/api\/system.data.sqltypes.sqlboolean\" rel=\"noopener nofollow\">SqlBoolean<\/a>, \u0433\u0434\u0435 \u043a\u0440\u043e\u043c\u0435 \u0434\u0430 \u0438 \u043d\u0435\u0442 \u0435\u0441\u0442\u044c \u0442\u0440\u0435\u0442\u044c\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u2014 Null, \u0442\u043e \u0435\u0441\u0442\u044c \u00ab\u043d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\u00bb. \u0414\u043b\u044f \u0442\u0430\u043a\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043e\u0431\u0430 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0442 false: \u043e\u043d\u043e \u043d\u0435 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u043d\u0438 if (x), \u043d\u0438 if (!x).<\/p>\n<h4>\u0413\u0434\u0435 \u043b\u0435\u0433\u043a\u043e \u043e\u0448\u0438\u0431\u0438\u0442\u044c\u0441\u044f<\/h4>\n<p>\u041e\u0431\u044a\u044f\u0432\u0438\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e true \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u043d\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u0442: \u043d\u0443\u0436\u043d\u044b \u043e\u0431\u0430 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043f\u0440\u0438\u0441\u0432\u043e\u0438\u0442\u044c \u043e\u0431\u044a\u0435\u043a\u0442 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0442\u0438\u043f\u0430 bool \u0438\u043b\u0438 \u0441\u0440\u0430\u0432\u043d\u0438\u0442\u044c \u0435\u0433\u043e \u0441 true \u043f\u043e-\u043f\u0440\u0435\u0436\u043d\u0435\u043c\u0443 \u043d\u0435\u043b\u044c\u0437\u044f \u2014 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043a bool \u0443 \u0442\u0438\u043f\u0430 \u043d\u0435\u0442.<\/p>\n<h4>\u0413\u0434\u0435 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u0442\u0441\u044f<\/h4>\n<p>\u0412 <a href=\"https:\/\/github.com\/dotnet\/runtime\/blob\/60629d14374c56f1cb51819049ad1fa529307f8d\/src\/libraries\/System.Data.Common\/src\/System\/Data\/SQLTypes\/SQLBoolean.cs#L136\" rel=\"noopener nofollow\">SqlBoolean<\/a>: \u0442\u0430\u043c \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u044b \u043e\u0431\u0430 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u0438 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 &amp;, \u0440\u043e\u0432\u043d\u043e \u043a\u0430\u043a \u0432 \u043f\u0440\u0438\u043c\u0435\u0440\u0435. \u042d\u0442\u043e \u0442\u0438\u043f \u0434\u043b\u044f \u043a\u043e\u043b\u043e\u043d\u043a\u0438 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445, \u0433\u0434\u0435 \u043a\u0440\u043e\u043c\u0435 \u0434\u0430 \u0438 \u043d\u0435\u0442 \u0431\u044b\u0432\u0430\u0435\u0442 \u043f\u0443\u0441\u0442\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435.<\/p>\n<h3>5. \u041c\u0435\u0442\u043e\u0434 \u0443 \u043f\u0443\u0441\u0442\u043e\u0439 \u0441\u0441\u044b\u043b\u043a\u0438<\/h3>\n<h4>\u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a<\/h4>\n<p>\u0415\u0441\u0442\u044c \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435, \u0447\u0442\u043e \u043c\u0435\u0442\u043e\u0434 \u043a\u043b\u0430\u0441\u0441\u0430 \u0432\u044b\u0437\u043e\u0432\u0435\u0442\u0441\u044f \u0431\u0435\u0437 \u043e\u0448\u0438\u0431\u043a\u0438, \u0435\u0441\u043b\u0438 \u0432\u043d\u0443\u0442\u0440\u0438 \u043e\u043d \u043d\u0435 \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043a \u043f\u043e\u043b\u044f\u043c: \u0440\u0430\u0437\u044b\u043c\u0435\u043d\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u0432 \u0442\u0430\u043a\u043e\u043c \u043c\u0435\u0442\u043e\u0434\u0435 \u043d\u0435\u0447\u0435\u0433\u043e. \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0430 \u0442\u0440\u0451\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445:<\/p>\n<pre><code class=\"cs\">Sample empty = null; empty.WithField();      \/\/ \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043f\u043e\u043b\u0435empty.WithoutField();   \/\/ \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0443, \u043a \u043f\u043e\u043b\u044f\u043c \u043d\u0435 \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044fempty.Extension();      \/\/ \u043c\u0435\u0442\u043e\u0434 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>\u0427\u0442\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u043e\u0442\u0447\u0451\u0442<\/h4>\n<pre><code class=\"cs\">  \u0441\u0441\u044b\u043b\u043a\u0430 \u043f\u0443\u0441\u0442\u0430\u044f: True   \u043c\u0435\u0442\u043e\u0434 \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043a \u043f\u043e\u043b\u044e       NullReferenceException  \u043c\u0435\u0442\u043e\u0434 \u043a \u043f\u043e\u043b\u044f\u043c \u043d\u0435 \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f   NullReferenceException  \u043c\u0435\u0442\u043e\u0434 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f              \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043b\u0441\u044f, \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u043f\u0443\u0441\u0442\u043e\u0439<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>\u041f\u0440\u0438\u0447\u0438\u043d\u0430<\/h4>\n<p>\u041a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 C# \u043d\u0430 \u0432\u044b\u0437\u043e\u0432 \u043c\u0435\u0442\u043e\u0434\u0430 \u0443 \u0441\u0441\u044b\u043b\u043e\u0447\u043d\u043e\u0433\u043e \u0442\u0438\u043f\u0430 \u0432\u044b\u0434\u0430\u0451\u0442 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e callvirt \u0434\u0430\u0436\u0435 \u0434\u043b\u044f \u043d\u0435\u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430 \u2014 \u0440\u0430\u0434\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043d\u0430 \u043f\u0443\u0441\u0442\u0443\u044e \u0441\u0441\u044b\u043b\u043a\u0443. \u041e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u043a \u043f\u043e\u043b\u044f\u043c \u0442\u0443\u0442 \u043d\u0438 \u043f\u0440\u0438 \u0447\u0451\u043c.<\/p>\n<p>\u041c\u0435\u0442\u043e\u0434 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u044d\u0442\u043e \u043d\u0435 \u0432\u044b\u0437\u043e\u0432 \u043d\u0430 \u043e\u0431\u044a\u0435\u043a\u0442\u0435: \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0435\u0433\u043e \u0432 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0432\u044b\u0437\u043e\u0432 \u0441 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u043c. \u0412\u043d\u0443\u0442\u0440\u0438 \u0442\u0430\u043a\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430 null \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u043a\u0430\u043a \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430, \u0438 \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043a\u0430\u043a \u043b\u044e\u0431\u043e\u0439 \u0434\u0440\u0443\u0433\u043e\u0439 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442.<\/p>\n<h4>\u0413\u0434\u0435 \u043b\u0435\u0433\u043a\u043e \u043e\u0448\u0438\u0431\u0438\u0442\u044c\u0441\u044f<\/h4>\n<p>\u0412 \u043c\u0435\u0442\u043e\u0434\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 is null \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0438 \u043d\u0443\u0436\u043d\u0430. \u0412 \u043e\u0431\u044b\u0447\u043d\u043e\u043c \u043c\u0435\u0442\u043e\u0434\u0435 \u043e\u043d\u0430 \u043d\u0435\u0434\u043e\u0441\u0442\u0438\u0436\u0438\u043c\u0430: \u0434\u043e \u043d\u0435\u0451 \u0434\u0435\u043b\u043e \u043d\u0435 \u0434\u043e\u0439\u0434\u0451\u0442, \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043f\u0440\u0438\u043b\u0435\u0442\u0438\u0442 \u0440\u0430\u043d\u044c\u0448\u0435.<\/p>\n<h3>\u0413\u0440\u0430\u043d\u0438\u0446\u044b<\/h3>\n<p>\u0412\u0441\u0435 \u043f\u0440\u043e\u0433\u043e\u043d\u044b \u043d\u0430 \u0447\u0435\u0442\u044b\u0440\u0451\u0445 \u043c\u0430\u0448\u0438\u043d\u0430\u0445 \u0441\u043d\u044f\u0442\u044b \u043d\u0430 Windows x64. \u0412\u044b\u0432\u043e\u0434 \u0441 Linux \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u043f\u0440\u043e __arglist \u043f\u043e\u043b\u0443\u0447\u0435\u043d \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e, \u043d\u0430 \u043e\u0434\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435 \u0441 Ubuntu 24.04, \u0438 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0451\u043d \u043a\u043e\u0434\u043e\u043c \u0434\u0436\u0438\u0442\u0430.<\/p>\n<p>\u0417\u0430\u043c\u0435\u043d\u0430 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f \u043d\u0430 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0434\u0435\u0440\u0436\u0438\u0442\u0441\u044f \u043d\u0430 \u0442\u043e\u043c, \u0447\u0442\u043e \u043e\u043d \u0437\u0430\u043f\u0438\u0441\u0430\u043d \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u0430. Microsoft \u044d\u0442\u043e\u0433\u043e \u043d\u0438\u0433\u0434\u0435 \u043d\u0435 \u043e\u0431\u0435\u0449\u0430\u043b\u0430: \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u043c\u043e\u0433\u0443\u0442 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c, \u0438 \u0442\u043e\u0433\u0434\u0430 \u043f\u0440\u0438\u0451\u043c \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c. \u0421\u0432\u0435\u0440\u043a\u0430 \u044d\u0442\u043e \u0437\u0430\u043c\u0435\u0442\u0438\u0442 \u0438 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442 \u043f\u0440\u043e\u0433\u043e\u043d.<\/p>\n<p>__makeref,<strong> <\/strong>__reftype, __refvalue \u0438<strong> <\/strong>__arglist \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u043d\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u044b. \u0418\u0445 \u043c\u043e\u0433\u0443\u0442 \u0443\u0431\u0440\u0430\u0442\u044c \u0432 \u043b\u044e\u0431\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430 \u0431\u0435\u0437 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f \u2014 \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u0442\u0447\u0451\u0442\u044b \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e\u0442\u0441\u044f \u043d\u0430 \u0442\u0440\u0451\u0445 \u0440\u0430\u043d\u0442\u0430\u0439\u043c\u0430\u0445.<\/p>\n<h3>\u041a\u043e\u0434 \u0438\u0437 \u0441\u0442\u0430\u0442\u044c\u0438<\/h3>\n<ul>\n<li>\n<p><a href=\"https:\/\/github.com\/ComboxSoftDeveloper\/UndocumentedProof\" rel=\"noopener nofollow\">UndocumentedProof<\/a> \u2014 \u043e\u0442\u0447\u0451\u0442\u044b \u0438 \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0438 \u0441 \u0447\u0435\u0442\u044b\u0440\u0451\u0445 \u043c\u0430\u0448\u0438\u043d<\/p>\n<\/li>\n<\/ul>\n<h3>\u0421\u0441\u044b\u043b\u043a\u0438<\/h3>\n<ul>\n<li>\n<p><a href=\"https:\/\/github.com\/dotnet\/runtime\/blob\/60629d14374c56f1cb51819049ad1fa529307f8d\/src\/coreclr\/jit\/target.h#L31\" rel=\"noopener nofollow\">\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0432 \u0434\u0436\u0438\u0442\u0435<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/dotnet\/runtime\/blob\/60629d14374c56f1cb51819049ad1fa529307f8d\/src\/coreclr\/jit\/importercalls.cpp#L566\" rel=\"noopener nofollow\">\u041e\u0442\u043a\u0430\u0437 \u0434\u0436\u0438\u0442\u0430 \u043f\u0440\u0438 \u0440\u0430\u0437\u0431\u043e\u0440\u0435 \u0432\u044b\u0437\u043e\u0432\u0430<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/dotnet\/runtime\/blob\/60629d14374c56f1cb51819049ad1fa529307f8d\/src\/coreclr\/System.Private.CoreLib\/src\/System\/Runtime\/CompilerServices\/RuntimeHelpers.CoreCLR.cs#L671\" rel=\"noopener nofollow\">\u0422\u0430\u0431\u043b\u0438\u0446\u0430 \u043c\u0435\u0442\u043e\u0434\u043e\u0432, \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u0430\u044f \u043d\u0430 C#<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/learn.microsoft.com\/dotnet\/api\/system.typedreference\" rel=\"noopener nofollow\">TypedReference<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/learn.microsoft.com\/dotnet\/api\/system.argiterator\" rel=\"noopener nofollow\">ArgIterator<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/learn.microsoft.com\/dotnet\/csharp\/language-reference\/operators\/true-false-operators\" rel=\"noopener nofollow\">\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b true \u0438 false<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/learn.microsoft.com\/dotnet\/csharp\/programming-guide\/classes-and-structs\/extension-methods\" rel=\"noopener nofollow\">\u041c\u0435\u0442\u043e\u0434\u044b \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f<\/a><\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0412\u0441\u0435\u043c \u0443\u0434\u0430\u0447\u0438 \u0438 \u0434\u043e \u043d\u043e\u0432\u044b\u0445 \u0432\u0441\u0442\u0440\u0435\u0447!<\/strong><\/p>\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\/articles\/1080494\/\">https:\/\/habr.com\/ru\/articles\/1080494\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0412 C# \u0435\u0441\u0442\u044c \u0447\u0435\u0442\u044b\u0440\u0435 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0445 \u0441\u043b\u043e\u0432\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0435\u0442 \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438. \u041a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0438\u0445 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442.\u041e\u0434\u043d\u043e \u0438\u0437 \u043d\u0438\u0445 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u043b\u044e\u0431\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435, \u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 Windows. \u041d\u0430 Linux \u0442\u0430 \u0436\u0435 \u0441\u0431\u043e\u0440\u043a\u0430 \u043f\u0430\u0434\u0430\u0435\u0442. \u0414\u0430\u043b\u044c\u0448\u0435 \u2014 \u043a\u0430\u043a \u043e\u0431\u044a\u0435\u043a\u0442 \u043c\u0435\u043d\u044f\u0435\u0442 \u0441\u0432\u043e\u0439 \u0442\u0438\u043f \u043d\u0430 \u0445\u043e\u0434\u0443 \u0438 \u0447\u0442\u043e \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043f\u0440\u0438 \u0432\u044b\u0437\u043e\u0432\u0435 \u043c\u0435\u0442\u043e\u0434\u0430 \u0443 \u043f\u0443\u0441\u0442\u043e\u0439 \u0441\u0441\u044b\u043b\u043a\u0438.\u041f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u043e \u043d\u0430 \u0447\u0435\u0442\u044b\u0440\u0451\u0445 \u043c\u0430\u0448\u0438\u043d\u0430\u0445 x64 \u043f\u043e\u0434 Windows, \u043d\u0430 .NET 8, 9 \u0438 10, \u0441\u0431\u043e\u0440\u043a\u0438 \u043e\u0442 8.0.11 \u0434\u043e 10.0.12.1. __makeref, __reftype, __refvalue\u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a__makeref \u0441\u043e\u0437\u0434\u0430\u0451\u0442 TypedReference \u2014 \u043f\u0430\u0440\u0443 \u0438\u0437 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f \u043d\u0430 \u0442\u0438\u043f. __reftype \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0442\u0438\u043f \u0438\u0437 \u044d\u0442\u043e\u0439 \u043f\u0430\u0440\u044b, __refvalue \u0447\u0438\u0442\u0430\u0435\u0442 \u0438 \u043f\u0438\u0448\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435.int number = 42;string text = &#171;\u0421\u0435\u043a\u0440\u0435\u0442&#187;; TypedReference toNumber = __makeref(number);TypedReference toText = __makeref(text); Console.WriteLine(__reftype(toNumber).Name);   \/\/ Int32Console.WriteLine(__reftype(toText).Name);     \/\/ String __refvalue(toNumber, int) = 100;Console.WriteLine(number);                     \/\/ 100\u0422\u0438\u043f TypedReference \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0435\u0441\u0442\u044c. __makeref, __reftype \u0438 __refvalue \u2014 \u043d\u0435\u0442.\u0427\u0442\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u043e\u0442\u0447\u0451\u0442\u0422\u0438\u043f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0431\u0435\u0437 \u0432\u044b\u0437\u043e\u0432\u0430 GetType   int       __reftype \u0434\u0430\u0451\u0442 Int32  string    __reftype \u0434\u0430\u0451\u0442 String  DateTime  __reftype \u0434\u0430\u0451\u0442 DateTime \u0420\u0430\u0437\u043d\u0438\u0446\u0430 \u0441 GetType   \u0447\u0438\u0441\u043b\u043e \u0434\u043e \u0437\u0430\u043f\u0438\u0441\u0438: 42  \u043f\u043e\u0441\u043b\u0435 __refvalue: 100  TypedReference.ToObject: \u0421\u0435\u043a\u0440\u0435\u0442\u041e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e \u043d\u0430 .NET 8, 9 \u0438 10 \u0438 \u043d\u0430 \u0432\u0441\u0435\u0445 \u0447\u0435\u0442\u044b\u0440\u0451\u0445 \u043c\u0430\u0448\u0438\u043d\u0430\u0445.\u041f\u0440\u0438\u0447\u0438\u043d\u0430GetType \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u043c. \u0414\u043b\u044f \u0437\u043d\u0430\u0447\u0438\u043c\u043e\u0433\u043e \u0442\u0438\u043f\u0430 \u044d\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u0443\u043f\u0430\u043a\u043e\u0432\u043a\u0443: \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442 \u0432 \u043a\u0443\u0447\u0443 \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0442\u043e\u043c \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u0432\u043e\u0439 \u0442\u0438\u043f.__reftype \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439. \u0422\u0438\u043f \u0431\u0435\u0440\u0451\u0442\u0441\u044f \u0438\u0437 \u0432\u0442\u043e\u0440\u043e\u0439 \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u044b TypedReference, \u043a\u0443\u0434\u0430 \u0435\u0433\u043e \u0437\u0430\u043f\u0438\u0441\u0430\u043b __makeref, \u0438 \u0432 \u043a\u0443\u0447\u0443 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442.\u0422\u0430\u043a \u0436\u0435 \u0443\u0441\u0442\u0440\u043e\u0435\u043d\u0430 \u0438 \u0437\u0430\u043f\u0438\u0441\u044c \u0447\u0435\u0440\u0435\u0437 __refvalue: \u0432 \u043f\u0430\u0440\u0435 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u0441\u0430\u043c\u0443 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e, \u0430 \u043d\u0435 \u043a\u043e\u043f\u0438\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f. \u0412 \u0441\u0442\u0440\u043e\u043a\u0435 __refvalue(toNumber, int) = 100; \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f number \u043d\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0430, \u0430 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0438\u043c\u0435\u043d\u043d\u043e \u043e\u043d\u0430.\u0413\u0434\u0435 \u043b\u0435\u0433\u043a\u043e \u043e\u0448\u0438\u0431\u0438\u0442\u044c\u0441\u044fTypedReference \u2014 \u044d\u0442\u043e ref struct, \u0438 \u043e\u0442\u0441\u044e\u0434\u0430 \u0432\u0441\u0435 \u0437\u0430\u043f\u0440\u0435\u0442\u044b: \u0435\u0433\u043e \u043d\u0435\u043b\u044c\u0437\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432 \u043f\u043e\u043b\u0435, \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c \u0432 \u043c\u0430\u0441\u0441\u0438\u0432 \u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0432 \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434. \u041e\u043d \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0441\u0442\u0435\u043a\u0435 \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u0445 \u0432\u044b\u0437\u043e\u0432\u0430, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u0445\u0440\u0430\u043d\u0438\u0442 \u043f\u0440\u044f\u043c\u043e\u0439 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e.\u0413\u0434\u0435 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u0442\u0441\u044f\u0412 \u0440\u0435\u0444\u043b\u0435\u043a\u0441\u0438\u0438. \u041c\u0435\u0442\u043e\u0434\u044b FieldInfo.SetValueDirect \u0438 GetValueDirect \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0442 TypedReference: \u0447\u0435\u0440\u0435\u0437 \u043d\u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u043e\u043b\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b, \u043d\u0435 \u0443\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u044f \u0435\u0451 \u0432 \u043e\u0431\u044a\u0435\u043a\u0442. \u041e\u0431\u044b\u0447\u043d\u044b\u0439 SetValue \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 object, \u0442\u043e \u0435\u0441\u0442\u044c \u0443\u043f\u0430\u043a\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u043a\u043e\u043f\u0438\u044e, \u0438 \u0437\u0430\u043f\u0438\u0441\u044c \u0443\u0445\u043e\u0434\u0438\u0442 \u0432 \u043d\u0435\u0451, \u0430 \u043d\u0435 \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443.__reftype \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u0438 TypedReference.GetHashCode: \u0438\u043d\u0430\u0447\u0435 \u0442\u0438\u043f \u043e\u0442\u0442\u0443\u0434\u0430 \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c.2. \u0421\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0432\u0435\u0437\u0434\u0435, \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 Windows\u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a__arglist \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u0442 \u043c\u0435\u0442\u043e\u0434 \u0441 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c \u0447\u0438\u0441\u043b\u043e\u043c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0431\u0435\u0437 params \u0438 \u0431\u0435\u0437 \u043c\u0430\u0441\u0441\u0438\u0432\u0430. \u0410\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u044f\u044e\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 ArgIterator:private static string Join(__arglist){    ArgIterator iterator = new(__arglist);    string result = string.Empty;     while (iterator.GetRemainingCount() &gt; 0)    {        TypedReference argument = iterator.GetNextArg();        result += __reftype(argument).Name + &#187; = &#187;                + TypedReference.ToObject(argument) + &#171;; &#171;;    }     return result;} \/\/ \u0432\u044b\u0437\u043e\u0432Join(__arglist(1, &#171;\u0434\u0432\u0430&#187;, 3.5));\u0421\u0431\u043e\u0440\u043a\u0430 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u0431\u0435\u0437 \u0435\u0434\u0438\u043d\u043e\u0433\u043e \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f.\u0427\u0442\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u043e\u0442\u0447\u0451\u0442\u0421\u0438\u0441\u0442\u0435\u043c\u0430: Microsoft Windows 10.0.17763, X64   \u0432\u044b\u0437\u043e\u0432 \u043f\u0440\u043e\u0448\u0451\u043b: Int32 = 1; String = \u0434\u0432\u0430; Double = 3,5;\u0422\u0430 \u0436\u0435 \u0441\u0431\u043e\u0440\u043a\u0430 \u043d\u0430 Linux:\u0421\u0438\u0441\u0442\u0435\u043c\u0430: Ubuntu 24.04.4 LTS, X64   \u0432\u044b\u0437\u043e\u0432 \u043d\u0435 \u043f\u0440\u043e\u0448\u0451\u043b  \u0442\u0438\u043f \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f: System.InvalidProgramException  \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435:      Vararg calling convention not supported.\u041f\u0440\u0438\u0447\u0438\u043d\u0430\u0412\u0441\u0451 \u0440\u0435\u0448\u0430\u0435\u0442 \u043e\u0434\u043d\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0432 \u0434\u0436\u0438\u0442\u0435:\/\/ Native Varargs are not supported on Unix (all architectures) and Windows ARMinline bool compFeatureVarArg(){    return TargetOS::IsWindows &amp;&amp; !TargetArchitecture::IsArm32;}\u041a\u043e\u0433\u0434\u0430 \u043e\u043d\u0430 \u043d\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f, \u0434\u0436\u0438\u0442 \u043e\u0442\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u044b\u0437\u043e\u0432:if (!compFeatureVarArg() &amp;&amp; ((sig-&gt;callConv &amp; CORINFO_CALLCONV_MASK) == CORINFO_CALLCONV_VARARG ||                             (sig-&gt;callConv &amp; CORINFO_CALLCONV_MASK) == CORINFO_CALLCONV_NATIVEVARARG)){    BADCODE(&#171;Varargs not supported.&#187;);}\u0414\u0436\u0438\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0441\u043e\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0435 \u0432\u044b\u0437\u043e\u0432\u0430 \u043d\u0435 \u0442\u043e\u0433\u0434\u0430, \u043a\u043e\u0433\u0434\u0430 \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442 \u043c\u0435\u0442\u043e\u0434 \u0441 __arglist, \u0430 \u0442\u043e\u0433\u0434\u0430, \u043a\u043e\u0433\u0434\u0430 \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442 \u043c\u0435\u0442\u043e\u0434, \u043e\u0442\u043a\u0443\u0434\u0430 \u0435\u0433\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u044e\u0442. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0430\u0434\u0430\u0435\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u044e\u0449\u0438\u0439 \u043a\u043e\u0434, \u0430 \u043d\u0435 \u0441\u0430\u043c \u043c\u0435\u0442\u043e\u0434.\u0421\u043e\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0435 \u0432\u044b\u0437\u043e\u0432\u0430 \u0441 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c \u0447\u0438\u0441\u043b\u043e\u043c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u043f\u0440\u0438\u0448\u043b\u043e \u0438\u0437 C, \u0438 \u043d\u0430 Unix \u0435\u0433\u043e \u0432 .NET \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043b\u0438.\u0413\u0434\u0435 \u043b\u0435\u0433\u043a\u043e \u043e\u0448\u0438\u0431\u0438\u0442\u044c\u0441\u044f\u0412\u044b\u0437\u043e\u0432 \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u043d\u0435\u0441\u0442\u0438 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434 \u0438 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043d\u0430\u0434 \u043d\u0438\u043c [MethodImpl(MethodImplOptions.NoInlining)]. \u0414\u0436\u0438\u0442 \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442 \u043c\u0435\u0442\u043e\u0434 \u0446\u0435\u043b\u0438\u043a\u043e\u043c, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0438 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u043c \u0432\u044b\u0437\u043e\u0432\u0435 \u043e\u043d \u043e\u0442\u043a\u0430\u0436\u0435\u0442\u0441\u044f \u043e\u0442 \u0432\u0441\u0435\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430, \u043a\u0443\u0434\u0430 \u0442\u043e\u0442 \u043f\u043e\u043f\u0430\u043b, \u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0443\u043f\u0430\u0434\u0451\u0442 \u0434\u043e \u043f\u0435\u0440\u0432\u043e\u0439 \u0432\u044b\u0432\u0435\u0434\u0435\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u2014 \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u0432\u044b\u0437\u043e\u0432 \u043e\u0431\u0451\u0440\u043d\u0443\u0442 \u0432 try.\u041c\u0435\u0442\u043e\u0434 \u0441 __arglist \u043d\u0435\u043b\u044c\u0437\u044f \u043e\u0431\u044a\u044f\u0432\u0438\u0442\u044c \u0432 \u043e\u0431\u043e\u0431\u0449\u0451\u043d\u043d\u043e\u043c \u0442\u0438\u043f\u0435: \u0441\u0440\u0435\u0434\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0442\u0430\u043a\u043e\u0435 \u043d\u0435 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442.\u0413\u0434\u0435 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u0442\u0441\u044f\u041f\u043e\u0438\u0441\u043a \u043f\u043e \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0430\u043c .NET \u043d\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u0442 \u043d\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430 \u0441 __arglist. \u041e\u043d\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0440\u0430\u0434\u0438 \u0441\u043e\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u044f \u0432\u044b\u0437\u043e\u0432\u0430 \u0438\u0437 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0430 CLI: \u0434\u0440\u0443\u0433\u0438\u0435 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u044b \u043f\u043e\u0434 \u044d\u0442\u0443 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0443 \u0443\u043c\u0435\u044e\u0442 \u0432\u044b\u0434\u0430\u0432\u0430\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u0434, \u0438 \u0440\u0430\u043d\u0442\u0430\u0439\u043c \u0434\u043e\u043b\u0436\u0435\u043d \u0435\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c. \u041d\u0430 Unix \u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u0441\u0434\u0435\u043b\u0430\u043b\u0438.3. \u041c\u0430\u0441\u0441\u0438\u0432 \u0443\u0432\u0435\u0440\u0435\u043d, \u0447\u0442\u043e \u043e\u043d \u0441\u0442\u0440\u043e\u043a\u0430\u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0423 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0432 \u043a\u0443\u0447\u0435 \u043f\u0435\u0440\u0435\u0434 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0438\u0434\u0443\u0442 \u0434\u0432\u0430 \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u044b\u0445 \u043f\u043e\u043b\u044f \u043f\u043e 8 \u0431\u0430\u0439\u0442: \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0434\u043b\u044f \u0431\u043b\u043e\u043a\u0430 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0438 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u043c\u0435\u0442\u043e\u0434\u043e\u0432. \u0421\u0430\u043c\u0430 \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u043e\u043f\u0438\u0441\u0430\u043d\u0430 \u043d\u0430 C# \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043e\u0439 \u0441 \u044f\u0432\u043d\u044b\u043c\u0438 \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u044f\u043c\u0438. \u0415\u0441\u043b\u0438 \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u044d\u0442\u043e \u043c\u0435\u0441\u0442\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0442\u0438\u043f\u0430, \u0440\u0430\u043d\u0442\u0430\u0439\u043c \u043d\u0430\u0447\u043d\u0451\u0442 \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u043e\u0431\u044a\u0435\u043a\u0442 \u044d\u0442\u0438\u043c \u0442\u0438\u043f\u043e\u043c:nint original = MethodTable(numbers); SetMethodTable(numbers, MethodTable(sample));Console.WriteLine(numbers.GetType());SetMethodTable(numbers, original);\u0427\u0442\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u043e\u0442\u0447\u0451\u0442\u0414\u043e \u0437\u0430\u043c\u0435\u043d\u044b  \u043c\u0430\u0441\u0441\u0438\u0432 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442: System.Int32[]  \u0441\u0442\u0440\u043e\u043a\u0430 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442: System.String \u041f\u043e\u0441\u043b\u0435 \u0437\u0430\u043c\u0435\u043d\u044b  \u043c\u0430\u0441\u0441\u0438\u0432 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442: System.String  \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u043a\u0430\u043a \u0441\u0442\u0440\u043e\u043a\u0430: ..o   (\u0434\u043b\u0438\u043d\u0430 3) \u041f\u043e\u0441\u043b\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0430  \u043c\u0430\u0441\u0441\u0438\u0432 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442: System.Int32[]  \u043f\u0435\u0440\u0432\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442:  111  \u0441\u0431\u043e\u0440\u043a\u0430 \u043c\u0443\u0441\u043e\u0440\u0430 \u043f\u0440\u043e\u0448\u043b\u0430, \u043a\u0443\u0447\u0430 \u0446\u0435\u043b\u0430\u041f\u0440\u0438\u0447\u0438\u043d\u0430\u041c\u0430\u0441\u0441\u0438\u0432 \u0441\u043e\u0437\u0434\u0430\u043d \u0438\u0437 \u0442\u0440\u0451\u0445 \u0447\u0438\u0441\u0435\u043b: 111, 222, 333. \u0421\u0440\u0430\u0437\u0443 \u0437\u0430 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u043c \u043d\u0430 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0443 \u0441\u0442\u0440\u043e\u043a\u0438 \u0437\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u0434\u043b\u0438\u043d\u0430 \u0432 \u0447\u0435\u0442\u044b\u0440\u0451\u0445 \u0431\u0430\u0439\u0442\u0430\u0445, \u0430 \u0443 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u043f\u043e\u0434 \u0434\u043b\u0438\u043d\u0443 \u043e\u0442\u0432\u0435\u0434\u0435\u043d\u043e \u0432\u043e\u0441\u0435\u043c\u044c. \u0421\u0442\u0440\u043e\u043a\u0430 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043b\u0430 \u043f\u0435\u0440\u0432\u044b\u0435 \u0447\u0435\u0442\u044b\u0440\u0435 \u0431\u0430\u0439\u0442\u0430 \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0430 \u0434\u043b\u0438\u043d\u0443 3.\u0421\u0438\u043c\u0432\u043e\u043b\u044b \u0441\u0442\u0440\u043e\u043a\u0430 \u0447\u0438\u0442\u0430\u0435\u0442 \u0441\u0440\u0430\u0437\u0443 \u0437\u0430 \u0441\u0432\u043e\u0438\u043c\u0438 \u0447\u0435\u0442\u044b\u0440\u044c\u043c\u044f \u0431\u0430\u0439\u0442\u0430\u043c\u0438 \u0434\u043b\u0438\u043d\u044b. \u0422\u0430\u043c \u0443 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0435\u0449\u0451 \u043d\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u0430 \u043e\u0441\u0442\u0430\u0432\u0448\u0438\u0435\u0441\u044f \u0447\u0435\u0442\u044b\u0440\u0435 \u0431\u0430\u0439\u0442\u0430 \u0435\u0433\u043e \u0434\u043b\u0438\u043d\u044b, \u0438 \u0432 \u043d\u0438\u0445 \u043d\u0443\u043b\u0438: \u043e\u0442\u0441\u044e\u0434\u0430 \u0434\u0432\u0430 \u043f\u0435\u0440\u0432\u044b\u0445 \u0441\u0438\u043c\u0432\u043e\u043b\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0442\u0447\u0451\u0442 \u0437\u0430\u043c\u0435\u043d\u0438\u043b \u0442\u043e\u0447\u043a\u0430\u043c\u0438. \u0422\u0440\u0435\u0442\u0438\u0439 \u0441\u0438\u043c\u0432\u043e\u043b \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0443\u0436\u0435 \u043d\u0430 \u043f\u0435\u0440\u0432\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u043c\u0430\u0441\u0441\u0438\u0432\u0430: 111, \u0430 \u043a\u043e\u0434 111 \u0432 \u042e\u043d\u0438\u043a\u043e\u0434\u0435 \u2014 \u043b\u0430\u0442\u0438\u043d\u0441\u043a\u0430\u044f o.\u0413\u0434\u0435 \u043b\u0435\u0433\u043a\u043e \u043e\u0448\u0438\u0431\u0438\u0442\u044c\u0441\u044f\u041e\u0431\u044a\u0435\u043a\u0442 \u0441 \u0437\u0430\u043c\u0435\u043d\u0451\u043d\u043d\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u0435\u0439 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0440\u043e\u0432\u043d\u043e \u0434\u0432\u0435 \u0441\u0442\u0440\u043e\u043a\u0438. \u0417\u0430\u043c\u0435\u043d\u0430 \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0442 \u0438\u0434\u0443\u0442 \u0432 \u043e\u0434\u043d\u043e\u043c \u043c\u0435\u0442\u043e\u0434\u0435, \u043c\u0435\u0436\u0434\u0443 \u043d\u0438\u043c\u0438 \u043d\u0435\u0442 \u043d\u0438 \u0432\u044b\u0445\u043e\u0434\u0430, \u043d\u0438 \u0432\u044b\u0437\u043e\u0432\u0430 \u0441\u0431\u043e\u0440\u043a\u0438 \u043c\u0443\u0441\u043e\u0440\u0430. \u0415\u0441\u043b\u0438 \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043e\u0431\u044a\u0435\u043a\u0442 \u0432 \u0442\u0430\u043a\u043e\u043c \u0432\u0438\u0434\u0435, \u0441\u0431\u043e\u0440\u0449\u0438\u043a \u043c\u0443\u0441\u043e\u0440\u0430 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0435\u0442 \u0435\u0433\u043e \u043f\u043e\u043b\u044f \u043f\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044e \u0447\u0443\u0436\u043e\u0433\u043e \u0442\u0438\u043f\u0430 \u0438 \u0443\u0440\u043e\u043d\u0438\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441.\u041e\u0442\u0447\u0451\u0442 \u043f\u043e\u0441\u043b\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0430 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u0441\u0431\u043e\u0440\u043a\u0443 \u043c\u0443\u0441\u043e\u0440\u0430 \u0438 \u0443\u0431\u0435\u0436\u0434\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043d\u0435 \u0443\u043f\u0430\u043b. \u0422\u043e\u0442 \u0436\u0435 \u043e\u0442\u0447\u0451\u0442 \u0441\u043d\u044f\u0442 \u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u043e\u043c \u0441\u0431\u043e\u0440\u0449\u0438\u043a\u0435: \u043e\u043d \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0435\u0442 \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0438\u043d\u0430\u0447\u0435.\u0413\u0434\u0435 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u0442\u0441\u044f\u0412 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 .NET \u0442\u0430\u043a\u043e\u0439 \u0437\u0430\u043c\u0435\u043d\u044b \u043d\u0435\u0442, \u0438 \u043f\u043e\u043b\u044c\u0437\u0430 \u043e\u0442 \u043d\u0435\u0451 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u0430: \u043f\u043e\u043d\u044f\u0442\u044c, \u0438\u0437 \u0447\u0435\u0433\u043e \u0441\u043e\u0431\u0440\u0430\u043d \u043e\u0431\u044a\u0435\u043a\u0442. \u041f\u043e\u0445\u043e\u0436\u0438\u043c \u043f\u0440\u0438\u0451\u043c\u043e\u043c \u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a\u0438 \u0438 \u043f\u0440\u043e\u0444\u0438\u043b\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0447\u0443\u0436\u043e\u0439 \u043e\u0431\u044a\u0435\u043a\u0442, \u043d\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u044f \u0435\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u043e\u0432.4. \u041e\u0431\u044a\u0435\u043a\u0442 \u0432\u043c\u0435\u0441\u0442\u043e \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b true \u0438 false \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0436\u0430\u044e\u0442\u0441\u044f \u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b, \u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0430\u0440\u043e\u0439:public static bool operator true(Flag flag) =&gt; flag._value;public static bool operator false(Flag flag) =&gt; !flag._value; public static Flag operator &amp;(Flag left, Flag right)    =&gt; new(left._value &amp;&amp; right._value);\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u0443\u0441\u043b\u043e\u0432\u0438\u0438 \u0432\u043c\u0435\u0441\u0442\u043e bool, \u0445\u043e\u0442\u044f \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043a bool \u0443 \u0442\u0438\u043f\u0430 \u043d\u0435\u0442.\u0427\u0442\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u043e\u0442\u0447\u0451\u0442  if (yes)                \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u043b  if (no)                 \u043d\u0435 \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u043b  while \u0441 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u043c        \u043e\u0431\u043e\u0440\u043e\u0442\u043e\u0432 3  \u0442\u0435\u0440\u043d\u0430\u0440\u043d\u044b\u0439 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440      \u0432\u0435\u0442\u043a\u0430 \u0434\u0430   yes &amp;&amp; no               \u043d\u0435\u0442  yes || no               \u0434\u0430\u041f\u0440\u0438\u0447\u0438\u043d\u0430\u041f\u0430\u0440\u0430 true \u0438 false \u043d\u0443\u0436\u043d\u0430 \u0440\u0430\u0434\u0438 \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u0445 &amp;&amp; \u0438 || \u0434\u043b\u044f \u0441\u0432\u043e\u0438\u0445 \u0442\u0438\u043f\u043e\u0432. \u041a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442 \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u0439 &amp;&amp; \u0438\u0437 \u0442\u0440\u0451\u0445 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u0432: &amp; \u0441\u0447\u0438\u0442\u0430\u0435\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442, \u0430 true \u0438 false \u0440\u0435\u0448\u0430\u044e\u0442, \u043d\u0443\u0436\u043d\u043e \u043b\u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0442\u044c \u043f\u0440\u0430\u0432\u044b\u0439 \u043e\u043f\u0435\u0440\u0430\u043d\u0434.\u0421\u0434\u0435\u043b\u0430\u043b\u0438 \u044d\u0442\u043e \u0434\u043b\u044f \u0442\u0438\u043f\u043e\u0432 \u0432\u0440\u043e\u0434\u0435 SqlBoolean, \u0433\u0434\u0435 \u043a\u0440\u043e\u043c\u0435 \u0434\u0430 \u0438 \u043d\u0435\u0442 \u0435\u0441\u0442\u044c \u0442\u0440\u0435\u0442\u044c\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u2014 Null, \u0442\u043e \u0435\u0441\u0442\u044c \u00ab\u043d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\u00bb. \u0414\u043b\u044f \u0442\u0430\u043a\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043e\u0431\u0430 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0442 false: \u043e\u043d\u043e \u043d\u0435 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u043d\u0438 if (x), \u043d\u0438 if (!x).\u0413\u0434\u0435 \u043b\u0435\u0433\u043a\u043e \u043e\u0448\u0438\u0431\u0438\u0442\u044c\u0441\u044f\u041e\u0431\u044a\u044f\u0432\u0438\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e true \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u043d\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u0442: \u043d\u0443\u0436\u043d\u044b \u043e\u0431\u0430 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043f\u0440\u0438\u0441\u0432\u043e\u0438\u0442\u044c \u043e\u0431\u044a\u0435\u043a\u0442 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0442\u0438\u043f\u0430 bool \u0438\u043b\u0438 \u0441\u0440\u0430\u0432\u043d\u0438\u0442\u044c \u0435\u0433\u043e \u0441 true \u043f\u043e-\u043f\u0440\u0435\u0436\u043d\u0435\u043c\u0443 \u043d\u0435\u043b\u044c\u0437\u044f \u2014 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043a bool \u0443 \u0442\u0438\u043f\u0430 \u043d\u0435\u0442.\u0413\u0434\u0435 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u0442\u0441\u044f\u0412 SqlBoolean: \u0442\u0430\u043c \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u044b \u043e\u0431\u0430 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u0438 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 &amp;, \u0440\u043e\u0432\u043d\u043e \u043a\u0430\u043a \u0432 \u043f\u0440\u0438\u043c\u0435\u0440\u0435. \u042d\u0442\u043e \u0442\u0438\u043f \u0434\u043b\u044f \u043a\u043e\u043b\u043e\u043d\u043a\u0438 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445, \u0433\u0434\u0435 \u043a\u0440\u043e\u043c\u0435 \u0434\u0430 \u0438 \u043d\u0435\u0442 \u0431\u044b\u0432\u0430\u0435\u0442 \u043f\u0443\u0441\u0442\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435.5. \u041c\u0435\u0442\u043e\u0434 \u0443 \u043f\u0443\u0441\u0442\u043e\u0439 \u0441\u0441\u044b\u043b\u043a\u0438\u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0415\u0441\u0442\u044c \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435, \u0447\u0442\u043e \u043c\u0435\u0442\u043e\u0434 \u043a\u043b\u0430\u0441\u0441\u0430 \u0432\u044b\u0437\u043e\u0432\u0435\u0442\u0441\u044f \u0431\u0435\u0437 \u043e\u0448\u0438\u0431\u043a\u0438, \u0435\u0441\u043b\u0438 \u0432\u043d\u0443\u0442\u0440\u0438 \u043e\u043d \u043d\u0435 \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043a \u043f\u043e\u043b\u044f\u043c: \u0440\u0430\u0437\u044b\u043c\u0435\u043d\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u0432 \u0442\u0430\u043a\u043e\u043c \u043c\u0435\u0442\u043e\u0434\u0435 \u043d\u0435\u0447\u0435\u0433\u043e. \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0430 \u0442\u0440\u0451\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445:Sample empty = null; empty.WithField();      \/\/ \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043f\u043e\u043b\u0435empty.WithoutField();   \/\/ \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0443, \u043a \u043f\u043e\u043b\u044f\u043c \u043d\u0435 \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044fempty.Extension();      \/\/ \u043c\u0435\u0442\u043e\u0434 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f\u0427\u0442\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u043e\u0442\u0447\u0451\u0442  \u0441\u0441\u044b\u043b\u043a\u0430 \u043f\u0443\u0441\u0442\u0430\u044f: True   \u043c\u0435\u0442\u043e\u0434 \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043a \u043f\u043e\u043b\u044e       NullReferenceException  \u043c\u0435\u0442\u043e\u0434 \u043a \u043f\u043e\u043b\u044f\u043c \u043d\u0435 \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f   NullReferenceException  \u043c\u0435\u0442\u043e\u0434 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f              \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043b\u0441\u044f, \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u043f\u0443\u0441\u0442\u043e\u0439\u041f\u0440\u0438\u0447\u0438\u043d\u0430\u041a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 C# \u043d\u0430 \u0432\u044b\u0437\u043e\u0432 \u043c\u0435\u0442\u043e\u0434\u0430 \u0443 \u0441\u0441\u044b\u043b\u043e\u0447\u043d\u043e\u0433\u043e \u0442\u0438\u043f\u0430 \u0432\u044b\u0434\u0430\u0451\u0442 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e callvirt \u0434\u0430\u0436\u0435 \u0434\u043b\u044f \u043d\u0435\u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430 \u2014 \u0440\u0430\u0434\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043d\u0430 \u043f\u0443\u0441\u0442\u0443\u044e \u0441\u0441\u044b\u043b\u043a\u0443. \u041e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u043a \u043f\u043e\u043b\u044f\u043c \u0442\u0443\u0442 \u043d\u0438 \u043f\u0440\u0438 \u0447\u0451\u043c.\u041c\u0435\u0442\u043e\u0434 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u044d\u0442\u043e \u043d\u0435 \u0432\u044b\u0437\u043e\u0432 \u043d\u0430 \u043e\u0431\u044a\u0435\u043a\u0442\u0435: \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0435\u0433\u043e \u0432 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0432\u044b\u0437\u043e\u0432 \u0441 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u043c. \u0412\u043d\u0443\u0442\u0440\u0438 \u0442\u0430\u043a\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430 null \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u043a\u0430\u043a \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430, \u0438 \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043a\u0430\u043a \u043b\u044e\u0431\u043e\u0439 \u0434\u0440\u0443\u0433\u043e\u0439 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442.\u0413\u0434\u0435 \u043b\u0435\u0433\u043a\u043e \u043e\u0448\u0438\u0431\u0438\u0442\u044c\u0441\u044f\u0412 \u043c\u0435\u0442\u043e\u0434\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 is null \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0438 \u043d\u0443\u0436\u043d\u0430. \u0412 \u043e\u0431\u044b\u0447\u043d\u043e\u043c \u043c\u0435\u0442\u043e\u0434\u0435 \u043e\u043d\u0430 \u043d\u0435\u0434\u043e\u0441\u0442\u0438\u0436\u0438\u043c\u0430: \u0434\u043e \u043d\u0435\u0451 \u0434\u0435\u043b\u043e \u043d\u0435 \u0434\u043e\u0439\u0434\u0451\u0442, \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043f\u0440\u0438\u043b\u0435\u0442\u0438\u0442 \u0440\u0430\u043d\u044c\u0448\u0435.\u0413\u0440\u0430\u043d\u0438\u0446\u044b\u0412\u0441\u0435 \u043f\u0440\u043e\u0433\u043e\u043d\u044b \u043d\u0430 \u0447\u0435\u0442\u044b\u0440\u0451\u0445 \u043c\u0430\u0448\u0438\u043d\u0430\u0445 \u0441\u043d\u044f\u0442\u044b \u043d\u0430 Windows x64. \u0412\u044b\u0432\u043e\u0434 \u0441 Linux \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u043f\u0440\u043e __arglist \u043f\u043e\u043b\u0443\u0447\u0435\u043d \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e, \u043d\u0430 \u043e\u0434\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435 \u0441 Ubuntu 24.04, \u0438 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0451\u043d \u043a\u043e\u0434\u043e\u043c \u0434\u0436\u0438\u0442\u0430.\u0417\u0430\u043c\u0435\u043d\u0430 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f \u043d\u0430 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0434\u0435\u0440\u0436\u0438\u0442\u0441\u044f \u043d\u0430 \u0442\u043e\u043c, \u0447\u0442\u043e \u043e\u043d \u0437\u0430\u043f\u0438\u0441\u0430\u043d \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u0430. Microsoft \u044d\u0442\u043e\u0433\u043e \u043d\u0438\u0433\u0434\u0435 \u043d\u0435 \u043e\u0431\u0435\u0449\u0430\u043b\u0430: \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u043c\u043e\u0433\u0443\u0442 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c, \u0438 \u0442\u043e\u0433\u0434\u0430 \u043f\u0440\u0438\u0451\u043c \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c. \u0421\u0432\u0435\u0440\u043a\u0430 \u044d\u0442\u043e \u0437\u0430\u043c\u0435\u0442\u0438\u0442 \u0438 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442 \u043f\u0440\u043e\u0433\u043e\u043d.__makeref, __reftype, __refvalue \u0438 __arglist \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u043d\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u044b. \u0418\u0445 \u043c\u043e\u0433\u0443\u0442 \u0443\u0431\u0440\u0430\u0442\u044c \u0432 \u043b\u044e\u0431\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430 \u0431\u0435\u0437 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f \u2014 \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u0442\u0447\u0451\u0442\u044b \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e\u0442\u0441\u044f \u043d\u0430 \u0442\u0440\u0451\u0445 \u0440\u0430\u043d\u0442\u0430\u0439\u043c\u0430\u0445.\u041a\u043e\u0434 \u0438\u0437 \u0441\u0442\u0430\u0442\u044c\u0438UndocumentedProof \u2014 \u043e\u0442\u0447\u0451\u0442\u044b \u0438 \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0438 \u0441 \u0447\u0435\u0442\u044b\u0440\u0451\u0445&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-494123","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/494123","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=494123"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/494123\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=494123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=494123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=494123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}