{"id":494132,"date":"2026-09-09T20:52:05","date_gmt":"2026-09-09T20:52:05","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=494132"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=494132","title":{"rendered":"\u0410 \u0447\u0451, \u0442\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e? \u041f\u0440\u0438\u0432\u0430\u0442\u043d\u043e\u0435 \u043f\u043e\u043b\u0435 \u0437\u0430 0,25 \u043d\u0430\u043d\u043e\u0441\u0435\u043a\u0443\u043d\u0434\u044b"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0427\u0442\u0435\u043d\u0438\u0435 \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044f \u0447\u0435\u0440\u0435\u0437 \u0440\u0435\u0444\u043b\u0435\u043a\u0441\u0438\u044e \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 8,96 \u043d\u0430\u043d\u043e\u0441\u0435\u043a\u0443\u043d\u0434\u044b \u0438 \u0432\u044b\u0434\u0435\u043b\u044f\u0435\u0442 24 \u0431\u0430\u0439\u0442\u0430 \u0432 \u043a\u0443\u0447\u0435. \u0422\u043e\u0442 \u0436\u0435 \u0434\u043e\u0441\u0442\u0443\u043f \u0431\u0435\u0437 \u0440\u0435\u0444\u043b\u0435\u043a\u0441\u0438\u0438 \u2014 0,25 \u043d\u0430\u043d\u043e\u0441\u0435\u043a\u0443\u043d\u0434\u044b \u0438 \u043d\u043e\u043b\u044c \u0431\u0430\u0439\u0442.<\/p>\n<p>\u0420\u0430\u0437\u043d\u0438\u0446\u0430 \u0432 35,8 \u0440\u0430\u0437\u0430, \u0430 \u043d\u0430 .NET 8 \u043e\u043d\u0430 \u0434\u043e\u0445\u043e\u0434\u0438\u043b\u0430 \u0434\u043e 108. \u0421\u043f\u043e\u0441\u043e\u0431 \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u0432 .NET 8, \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0431\u0435\u0437 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043a\u043e\u0434\u0430 \u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u043a\u043b\u0430\u0441\u0441\u043e\u0432.\u00a0<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td>\n<p align=\"left\"><strong>\u041c\u0430\u0448\u0438\u043d\u0430<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>\u041f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>\u0421\u0438\u0441\u0442\u0435\u043c\u0430<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u041a\u043e\u043c\u043f   1<\/p>\n<\/td>\n<td>\n<p align=\"center\">Intel Core i9-10900KF 3.70GHz, 10   \u044f\u0434\u0435\u0440<\/p>\n<\/td>\n<td>\n<p align=\"center\">Windows 10 22H2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u041a\u043e\u043c\u043f   2<\/p>\n<\/td>\n<td>\n<p align=\"center\">AMD Ryzen 9 5950X 3.39GHz, 16 \u044f\u0434\u0435\u0440<\/p>\n<\/td>\n<td>\n<p align=\"center\">Windows 10 1809<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u041a\u043e\u043c\u043f   3<\/p>\n<\/td>\n<td>\n<p align=\"center\">Intel Xeon W-2255 3.70GHz, 10 \u044f\u0434\u0435\u0440<\/p>\n<\/td>\n<td>\n<p align=\"center\">Windows Server 2022<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u041a\u043e\u043c\u043f   4<\/p>\n<\/td>\n<td>\n<p align=\"center\">Intel Xeon Silver 4314 2.40GHz, 2   CPU, 32 \u044f\u0434\u0440\u0430<\/p>\n<\/td>\n<td>\n<p align=\"center\">Windows Server 2022<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p><em>\u0412\u0441\u0435 \u043c\u0430\u0448\u0438\u043d\u044b x64<\/em><\/p>\n<p>\u0420\u0430\u043d\u0442\u0430\u0439\u043c\u044b .NET 8, 9 \u0438 10 \u2014 \u0432\u0441\u0435 \u0442\u0440\u0438 \u0432 \u043e\u0434\u043d\u043e\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0435 <a href=\"https:\/\/benchmarkdotnet.org\/\" rel=\"noopener nofollow\">BenchmarkDotNet<\/a> 0.15.8. \u0427\u0438\u0441\u043b\u0430 \u0432 \u0442\u0435\u043a\u0441\u0442\u0435 \u0441 AMD Ryzen 9 5950X, \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043f\u043e \u0432\u0441\u0435\u043c \u0447\u0435\u0442\u044b\u0440\u0451\u043c \u043c\u0430\u0448\u0438\u043d\u0430\u043c.<\/p>\n<h3>1. \u041a\u0430\u043a \u0434\u043e\u0441\u0442\u0430\u0442\u044c \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u043e\u0435 \u043f\u043e\u043b\u0435<\/h3>\n<h4>\u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a<\/h4>\n<p>\u0415\u0441\u0442\u044c \u043a\u043b\u0430\u0441\u0441, \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043d\u0435\u043b\u044c\u0437\u044f: \u0447\u0443\u0436\u0430\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430, \u043f\u0430\u043a\u0435\u0442 \u0438\u0437 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430, \u0447\u0430\u0441\u0442\u044c \u0441\u0430\u043c\u043e\u0439 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b.<\/p>\n<pre><code class=\"cs\">internal sealed class Secret{    private string _token = \"TopSecret\";    private int _counter = 42;}<\/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>\u041f\u0440\u0438\u0432\u044b\u0447\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0434\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0434\u043e \u043f\u043e\u043b\u044f \u2014 \u0440\u0435\u0444\u043b\u0435\u043a\u0441\u0438\u044f:<\/p>\n<pre><code class=\"cs\">FieldInfo field = typeof(Secret).GetField(\"_token\",    BindingFlags.Instance | BindingFlags.NonPublic); string token = (string)field.GetValue(secret);<\/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\u043f\u043e\u0441\u043e\u0431 \u0438\u0437 .NET 8 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a. \u041c\u0435\u0442\u043e\u0434 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d \u043a\u0430\u043a extern static, \u0442\u0435\u043b\u0430 \u0443 \u043d\u0435\u0433\u043e \u043d\u0435\u0442 \u2014 \u0435\u0433\u043e \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0440\u0430\u043d\u0442\u0430\u0439\u043c:<\/p>\n<pre><code class=\"cs\">[UnsafeAccessor(UnsafeAccessorKind.Field, Name = \"_token\")]internal static extern ref string Token(Secret instance); string token = Token(secret);   \/\/ \u0447\u0442\u0435\u043d\u0438\u0435Token(secret) = \"\u0418\u0437\u043c\u0435\u043d\u0435\u043d\u043e\";     \/\/ \u0437\u0430\u043f\u0438\u0441\u044c<\/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>\u041c\u0435\u0442\u043e\u0434 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u043f\u043e\u043b\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u0434\u043d\u0438\u043c \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0438 \u0447\u0442\u0435\u043d\u0438\u0435, \u0438 \u0437\u0430\u043f\u0438\u0441\u044c.<\/p>\n<h4>\u0427\u0442\u043e \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0437\u0430\u043c\u0435\u0440<\/h4>\n<p>\u0427\u0442\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u044f \u0441\u043e \u0441\u0442\u0440\u043e\u043a\u043e\u0439. \u0412\u0441\u0451, \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c \u0437\u0430\u0440\u0430\u043d\u0435\u0435, \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u043e: \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u043e\u043b\u044f \u043d\u0430\u0439\u0434\u0435\u043d\u043e \u043e\u0434\u0438\u043d \u0440\u0430\u0437, \u0434\u0435\u0440\u0435\u0432\u043e \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043e, \u043c\u0435\u0442\u043e\u0434 \u0438\u0437 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439 IL \u0441\u043e\u0431\u0440\u0430\u043d.\u00a0<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td>\n<p align=\"left\"><strong>\u0421\u043f\u043e\u0441\u043e\u0431<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>\u041a\u043e\u043c\u043f 1<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>\u041a\u043e\u043c\u043f 2<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>\u041a\u043e\u043c\u043f 3<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>\u041a\u043e\u043c\u043f 4<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u043f\u0440\u044f\u043c\u043e\u0435   \u0447\u0442\u0435\u043d\u0438\u0435 \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043b\u0430\u0441\u0441\u0430<\/p>\n<\/td>\n<td>\n<p align=\"center\">0,3006<\/p>\n<\/td>\n<td>\n<p align=\"center\">0,8650<\/p>\n<\/td>\n<td>\n<p align=\"center\">0,9838<\/p>\n<\/td>\n<td>\n<p align=\"center\">0,7647<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">UnsafeAccessor<\/p>\n<\/td>\n<td>\n<p align=\"center\">0,2898<\/p>\n<\/td>\n<td>\n<p align=\"center\">0,7547<\/p>\n<\/td>\n<td>\n<p align=\"center\">1,0182<\/p>\n<\/td>\n<td>\n<p align=\"center\">0,7140<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0434\u0435\u0440\u0435\u0432\u043e   \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0439<\/p>\n<\/td>\n<td>\n<p align=\"center\">1,5103<\/p>\n<\/td>\n<td>\n<p align=\"center\">1,6780<\/p>\n<\/td>\n<td>\n<p align=\"center\">2,2035<\/p>\n<\/td>\n<td>\n<p align=\"center\">2,7431<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u043c\u0435\u0442\u043e\u0434   \u0438\u0437 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439 IL<\/p>\n<\/td>\n<td>\n<p align=\"center\">2,2986<\/p>\n<\/td>\n<td>\n<p align=\"center\">2,1556<\/p>\n<\/td>\n<td>\n<p align=\"center\">3,1487<\/p>\n<\/td>\n<td>\n<p align=\"center\">4,3177<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0440\u0435\u0444\u043b\u0435\u043a\u0441\u0438\u044f   \u0441 \u0433\u043e\u0442\u043e\u0432\u044b\u043c \u043f\u043e\u043b\u0435\u043c<\/p>\n<\/td>\n<td>\n<p align=\"center\">2,2552<\/p>\n<\/td>\n<td>\n<p align=\"center\">3,0206<\/p>\n<\/td>\n<td>\n<p align=\"center\">2,9642<\/p>\n<\/td>\n<td>\n<p align=\"center\">3,5407<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0440\u0435\u0444\u043b\u0435\u043a\u0441\u0438\u044f   \u0441 \u043f\u043e\u0438\u0441\u043a\u043e\u043c \u043f\u043e\u043b\u044f<\/p>\n<\/td>\n<td>\n<p align=\"center\">11,6615<\/p>\n<\/td>\n<td>\n<p align=\"center\">11,1472<\/p>\n<\/td>\n<td>\n<p align=\"center\">16,3642<\/p>\n<\/td>\n<td>\n<p align=\"center\">15,4772<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p><em>\u041d\u0430\u043d\u043e\u0441\u0435\u043a\u0443\u043d\u0434\u044b, .NET 10<\/em>\u00a0<\/p>\n<p>UnsafeAccessor \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0437\u0430 \u0442\u043e \u0436\u0435 \u0432\u0440\u0435\u043c\u044f, \u0447\u0442\u043e \u043f\u0440\u044f\u043c\u043e\u0435 \u0447\u0442\u0435\u043d\u0438\u0435 \u0432\u043d\u0443\u0442\u0440\u0438 \u0441\u0430\u043c\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430. \u0420\u0435\u0444\u043b\u0435\u043a\u0441\u0438\u044f \u0441 \u0433\u043e\u0442\u043e\u0432\u044b\u043c \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043c \u043f\u043e\u043b\u044f \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0435\u0435 \u0432 2,9\u20137,8 \u0440\u0430\u0437\u0430, \u0441 \u043f\u043e\u0438\u0441\u043a\u043e\u043c \u043f\u043e\u043b\u044f \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0438 \u2014 \u0432 14,8\u201340,2 \u0440\u0430\u0437\u0430.<\/p>\n<h4>\u041f\u0440\u0438\u0447\u0438\u043d\u0430<\/h4>\n<p>\u0420\u0435\u0444\u043b\u0435\u043a\u0441\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432 \u0440\u0430\u043d\u0442\u0430\u0439\u043c\u0435: \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u043e\u043b\u044f \u0445\u0440\u0430\u043d\u0438\u0442 \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435, \u0442\u0438\u043f \u0438 \u043f\u0440\u0430\u0432\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0430, \u0430 GetValue \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442, \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u043e \u043b\u0438 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0435, \u0438 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043a object.<\/p>\n<p>UnsafeAccessor \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u0440\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 \u043c\u0435\u0442\u043e\u0434\u0430. \u0420\u0430\u043d\u0442\u0430\u0439\u043c \u0438\u0449\u0435\u0442 \u043f\u043e\u043b\u0435 \u043e\u0434\u0438\u043d \u0440\u0430\u0437, \u043a\u043e\u0433\u0434\u0430 \u0432\u043f\u0435\u0440\u0432\u044b\u0435 \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442 \u043c\u0435\u0442\u043e\u0434 \u0434\u043e\u0441\u0442\u0443\u043f\u0430, \u0438 \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0432 \u043d\u0435\u0433\u043e \u043e\u0431\u044b\u0447\u043d\u043e\u0435 \u0447\u0442\u0435\u043d\u0438\u0435 \u043f\u043e \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u044e. \u0414\u0430\u043b\u044c\u0448\u0435 \u044d\u0442\u043e \u0442\u043e\u0442 \u0436\u0435 \u043c\u0430\u0448\u0438\u043d\u043d\u044b\u0439 \u043a\u043e\u0434, \u0447\u0442\u043e \u0443 \u043f\u0440\u044f\u043c\u043e\u0433\u043e \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043a \u043f\u043e\u043b\u044e.<\/p>\n<h4>\u0413\u0434\u0435 \u043b\u0435\u0433\u043a\u043e \u043e\u0448\u0438\u0431\u0438\u0442\u044c\u0441\u044f<\/h4>\n<p>\u0418\u043c\u044f \u043f\u043e\u043b\u044f \u0437\u0430\u0434\u0430\u0451\u0442\u0441\u044f \u0441\u0442\u0440\u043e\u043a\u043e\u0439, \u0438 \u043e\u043f\u0435\u0447\u0430\u0442\u043a\u0443 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u043d\u0435 \u0443\u0432\u0438\u0434\u0438\u0442. \u0421\u0431\u043e\u0440\u043a\u0430 \u043f\u0440\u043e\u0439\u0434\u0451\u0442, \u0430 \u043f\u0440\u0438 \u043f\u0435\u0440\u0432\u043e\u043c \u0432\u044b\u0437\u043e\u0432\u0435 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435:<\/p>\n<pre><code class=\"cs\">[UnsafeAccessor(UnsafeAccessorKind.Field, Name = \"_tokenn\")]internal static extern ref string Missing(Secret instance); \/\/ \u0421\u0431\u043e\u0440\u043a\u0430 \u043f\u0440\u043e\u0448\u043b\u0430: True\/\/   \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.MissingFieldException\/\/   \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435:      Field not found: 'Secret._tokenn'.<\/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>\u0420\u0435\u0444\u043b\u0435\u043a\u0441\u0438\u044f \u0432 \u0442\u043e\u0439 \u0436\u0435 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 null \u0438\u0437 GetField, \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0434\u043e \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044f.<\/p>\n<p>\u041f\u043e\u0438\u0441\u043a \u0438\u0434\u0451\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0442\u043e\u043c \u0442\u0438\u043f\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443\u043a\u0430\u0437\u0430\u043d \u043f\u0435\u0440\u0432\u044b\u043c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u043c. \u041f\u043e \u0431\u0430\u0437\u043e\u0432\u044b\u043c \u0442\u0438\u043f\u0430\u043c \u0440\u0430\u043d\u0442\u0430\u0439\u043c \u043d\u0435 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442: \u043f\u043e\u043b\u0435, \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u043d\u043e\u0435 \u0432 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u0435, \u0442\u0430\u043a\u0438\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u043d\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u044c.<\/p>\n<p>\u0423 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u043f\u0435\u0440\u0432\u044b\u0439 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u043d\u0443\u0436\u043d\u043e \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0442\u044c \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435. \u0418\u043d\u0430\u0447\u0435 \u043c\u0435\u0442\u043e\u0434 \u043f\u043e\u043b\u0443\u0447\u0438\u0442 \u043a\u043e\u043f\u0438\u044e, \u0438 \u0437\u0430\u043f\u0438\u0441\u044c \u0432 \u043f\u043e\u043b\u0435 \u043f\u043e\u0442\u0435\u0440\u044f\u0435\u0442\u0441\u044f:<\/p>\n<pre><code class=\"cs\">[UnsafeAccessor(UnsafeAccessorKind.Field, Name = \"_counter\")]internal static extern ref int ValueCounter(ref SecretValue instance);<\/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<h3>2. \u041e\u0442\u043a\u0443\u0434\u0430 \u0431\u0435\u0440\u0443\u0442\u0441\u044f 0,25 \u043d\u0430\u043d\u043e\u0441\u0435\u043a\u0443\u043d\u0434\u044b<\/h3>\n<h4>\u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a<\/h4>\n<p>\u0422\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u043d\u043e \u043f\u043e\u043b\u0435 \u043d\u0435 \u0441\u0442\u0440\u043e\u043a\u0430, \u0430 \u0447\u0438\u0441\u043b\u043e:<\/p>\n<pre><code class=\"cs\">[UnsafeAccessor(UnsafeAccessorKind.Field, Name = \"_counter\")]internal static extern ref int Counter(Secret instance);<\/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 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0437\u0430\u043c\u0435\u0440<\/h4>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td>\n<p align=\"left\"><strong>\u0421\u043f\u043e\u0441\u043e\u0431<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>\u041a\u043e\u043c\u043f 1<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>\u041a\u043e\u043c\u043f 2<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>\u041a\u043e\u043c\u043f 3<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>\u041a\u043e\u043c\u043f 4<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u043f\u0440\u044f\u043c\u043e\u0435   \u0447\u0442\u0435\u043d\u0438\u0435 \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043b\u0430\u0441\u0441\u0430<\/p>\n<\/td>\n<td>\n<p align=\"center\">0,3987<\/p>\n<\/td>\n<td>\n<p align=\"center\">0,3354<\/p>\n<\/td>\n<td>\n<p align=\"center\">0,4634<\/p>\n<\/td>\n<td>\n<p align=\"center\">0,7005<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">UnsafeAccessor<\/p>\n<\/td>\n<td>\n<p align=\"center\">0,4053<\/p>\n<\/td>\n<td>\n<p align=\"center\">0,2504<\/p>\n<\/td>\n<td>\n<p align=\"center\">0,4826<\/p>\n<\/td>\n<td>\n<p align=\"center\">0,7247<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0440\u0435\u0444\u043b\u0435\u043a\u0441\u0438\u044f<\/p>\n<\/td>\n<td>\n<p align=\"center\">7,5632<\/p>\n<\/td>\n<td>\n<p align=\"center\">8,9606<\/p>\n<\/td>\n<td>\n<p align=\"center\">11,7065<\/p>\n<\/td>\n<td>\n<p align=\"center\">13,2518<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p><em>\u041d\u0430\u043d\u043e\u0441\u0435\u043a\u0443\u043d\u0434\u044b, .NET 10. \u0423 \u0440\u0435\u0444\u043b\u0435\u043a\u0441\u0438\u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e 24 \u0431\u0430\u0439\u0442\u0430 \u0432 \u043a\u0443\u0447\u0435<\/em>\u00a0<\/p>\n<p>\u0420\u0430\u0437\u043d\u0438\u0446\u0430 \u043e\u0442 18,3 \u0434\u043e 35,8 \u0440\u0430\u0437\u0430. \u0418 \u043a \u043d\u0435\u0439 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f 24 \u0431\u0430\u0439\u0442\u0430 \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u0435 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u2014 \u0441\u0442\u043e\u043b\u0431\u0435\u0446 Allocated \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432 \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>GetValue \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 object. \u0427\u0438\u0441\u043b\u043e \u0437\u043d\u0430\u0447\u0438\u043c\u043e\u0433\u043e \u0442\u0438\u043f\u0430 \u0432 object \u043d\u0435 \u043f\u043e\u043c\u0435\u0449\u0430\u0435\u0442\u0441\u044f: \u043f\u043e\u0434 \u043d\u0435\u0433\u043e \u0432\u044b\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0431\u044a\u0435\u043a\u0442 \u0432 \u043a\u0443\u0447\u0435, \u043a\u0443\u0434\u0430 \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435. \u042d\u0442\u043e \u0438 \u0435\u0441\u0442\u044c 24 \u0431\u0430\u0439\u0442\u0430: 16 \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u044b\u0445 \u043f\u043b\u044e\u0441 8 \u043f\u043e\u0434 \u0434\u0430\u043d\u043d\u044b\u0435 \u0441 \u043e\u043a\u0440\u0443\u0433\u043b\u0435\u043d\u0438\u0435\u043c.<\/p>\n<p>UnsafeAccessor \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 ref int. \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0442\u0430\u043c, \u0433\u0434\u0435 \u0431\u044b\u043b\u043e, \u0432 \u043a\u0443\u0447\u0443 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442.<\/p>\n<p>\u041d\u0430 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u0435 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0439 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u043d\u0430\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f 24 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u0430 \u0431\u0430\u0439\u0442 \u043c\u0443\u0441\u043e\u0440\u0430, \u0438 \u0432\u0441\u044f \u044d\u0442\u0430 \u043f\u0430\u043c\u044f\u0442\u044c \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u0447\u0435\u0440\u0435\u0437 \u0441\u0431\u043e\u0440\u0449\u0438\u043a \u043c\u0443\u0441\u043e\u0440\u0430.<\/p>\n<h4>\u0413\u0434\u0435 \u043b\u0435\u0433\u043a\u043e \u043e\u0448\u0438\u0431\u0438\u0442\u044c\u0441\u044f<\/h4>\n<p>\u0421\u0447\u0438\u0442\u0430\u0442\u044c, \u0447\u0442\u043e \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u0430 \u043d\u0430 \u0432\u0441\u0435\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445. \u041e\u043d\u0430 \u0440\u0430\u0437\u043d\u0430\u044f, \u0438 \u0441\u0438\u043b\u044c\u043d\u043e:\u00a0<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td>\n<p align=\"left\"><strong>\u0420\u0430\u043d\u0442\u0430\u0439\u043c<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>\u041a\u043e\u043c\u043f 1<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>\u041a\u043e\u043c\u043f 2<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>\u041a\u043e\u043c\u043f 3<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>\u041a\u043e\u043c\u043f 4<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">.NET   8<\/p>\n<\/td>\n<td>\n<p align=\"center\">91,7<\/p>\n<\/td>\n<td>\n<p align=\"center\">108,3<\/p>\n<\/td>\n<td>\n<p align=\"center\">97,6<\/p>\n<\/td>\n<td>\n<p align=\"center\">78,2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">.NET   9<\/p>\n<\/td>\n<td>\n<p align=\"center\">76,6<\/p>\n<\/td>\n<td>\n<p align=\"center\">117,4<\/p>\n<\/td>\n<td>\n<p align=\"center\">84,9<\/p>\n<\/td>\n<td>\n<p align=\"center\">57,2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">.NET   10<\/p>\n<\/td>\n<td>\n<p align=\"center\">18,7<\/p>\n<\/td>\n<td>\n<p align=\"center\">35,8<\/p>\n<\/td>\n<td>\n<p align=\"center\">24,3<\/p>\n<\/td>\n<td>\n<p align=\"center\">18,3<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p><em>\u0412\u043e \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437 \u0440\u0435\u0444\u043b\u0435\u043a\u0441\u0438\u044f \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0435\u0435 \u043f\u0440\u0438 \u0447\u0442\u0435\u043d\u0438\u0438 \u0447\u0438\u0441\u043b\u0430<\/em>\u00a0<\/p>\n<p>\u0412 .NET 10 \u0440\u0435\u0444\u043b\u0435\u043a\u0441\u0438\u044e \u0443\u0441\u043a\u043e\u0440\u0438\u043b\u0438: \u043d\u0430 AMD Ryzen 9 5950X \u0447\u0442\u0435\u043d\u0438\u0435 \u0447\u0438\u0441\u043b\u0430 \u0437\u0430\u043d\u0438\u043c\u0430\u043b\u043e 33,74 \u043d\u0430\u043d\u043e\u0441\u0435\u043a\u0443\u043d\u0434\u044b \u043d\u0430 \u0432\u043e\u0441\u044c\u043c\u0451\u0440\u043a\u0435 \u0438 8,96 \u043d\u0430 \u0434\u0435\u0441\u044f\u0442\u043a\u0435. \u041e\u0442\u0441\u0442\u0430\u0432\u0430\u043d\u0438\u0435 \u0441\u043e\u043a\u0440\u0430\u0442\u0438\u043b\u043e\u0441\u044c \u0432\u0442\u0440\u043e\u0435, \u043d\u043e \u043d\u0438\u043a\u0443\u0434\u0430 \u043d\u0435 \u0434\u0435\u043b\u043e\u0441\u044c.<\/p>\n<h3>3. \u041f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434<\/h3>\n<h4>\u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a<\/h4>\n<p>\u0422\u0435\u043c \u0436\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u043c \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0434\u043e\u0441\u0442\u0443\u043f \u0438 \u043a \u043c\u0435\u0442\u043e\u0434\u0443. \u041c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u0438\u0434 \u0434\u043e\u0441\u0442\u0443\u043f\u0430:<\/p>\n<pre><code class=\"cs\">[UnsafeAccessor(UnsafeAccessorKind.Method, Name = \"Reveal\")]internal static extern string Reveal(Secret instance, int times);<\/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 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0437\u0430\u043c\u0435\u0440<\/h4>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td>\n<p align=\"left\"><strong>\u0421\u043f\u043e\u0441\u043e\u0431<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>\u041a\u043e\u043c\u043f 1<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>\u041a\u043e\u043c\u043f 2<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>\u041a\u043e\u043c\u043f 3<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>\u041a\u043e\u043c\u043f 4<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u043f\u0440\u044f\u043c\u043e\u0439   \u0432\u044b\u0437\u043e\u0432 \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043b\u0430\u0441\u0441\u0430<\/p>\n<\/td>\n<td>\n<p align=\"center\">8,886<\/p>\n<\/td>\n<td>\n<p align=\"center\">11,70<\/p>\n<\/td>\n<td>\n<p align=\"center\">14,05<\/p>\n<\/td>\n<td>\n<p align=\"center\">15,76<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">UnsafeAccessor<\/p>\n<\/td>\n<td>\n<p align=\"center\">9,041<\/p>\n<\/td>\n<td>\n<p align=\"center\">10,54<\/p>\n<\/td>\n<td>\n<p align=\"center\">13,95<\/p>\n<\/td>\n<td>\n<p align=\"center\">17,68<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0434\u0435\u043b\u0435\u0433\u0430\u0442   \u043e\u0442 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043c\u0435\u0442\u043e\u0434\u0430<\/p>\n<\/td>\n<td>\n<p align=\"center\">11,463<\/p>\n<\/td>\n<td>\n<p align=\"center\">14,43<\/p>\n<\/td>\n<td>\n<p align=\"center\">16,12<\/p>\n<\/td>\n<td>\n<p align=\"center\">20,65<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0440\u0435\u0444\u043b\u0435\u043a\u0441\u0438\u044f<\/p>\n<\/td>\n<td>\n<p align=\"center\">25,876<\/p>\n<\/td>\n<td>\n<p align=\"center\">33,45<\/p>\n<\/td>\n<td>\n<p align=\"center\">40,27<\/p>\n<\/td>\n<td>\n<p align=\"center\">47,96<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p><em>\u041d\u0430\u043d\u043e\u0441\u0435\u043a\u0443\u043d\u0434\u044b, .NET 10<\/em>\u00a0<\/p>\n<p>\u0420\u0430\u0437\u043d\u0438\u0446\u0430 \u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u043d\u0430 \u043f\u043e\u043b\u044f\u0445: 2,7\u20133,2 \u0440\u0430\u0437\u0430. \u0417\u0430\u0442\u043e \u0443 \u0440\u0435\u0444\u043b\u0435\u043a\u0441\u0438\u0438 104 \u0431\u0430\u0439\u0442\u0430 \u043f\u0440\u043e\u0442\u0438\u0432 48 \u0443 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445.<\/p>\n<h4>\u041f\u0440\u0438\u0447\u0438\u043d\u0430<\/h4>\n<p>MethodInfo.Invoke \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u043c object. \u041c\u0430\u0441\u0441\u0438\u0432 \u0432\u044b\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0432\u044b\u0437\u043e\u0432\u0435, \u0447\u0438\u0441\u043b\u043e \u0432 \u043d\u0451\u043c \u0443\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043a object \u0438 \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043e\u0431\u0440\u0430\u0442\u043d\u043e. \u041e\u0442\u0441\u044e\u0434\u0430 \u0438 \u043b\u0438\u0448\u043d\u0438\u0435 56 \u0431\u0430\u0439\u0442.<\/p>\n<h4>\u0413\u0434\u0435 \u043b\u0435\u0433\u043a\u043e \u043e\u0448\u0438\u0431\u0438\u0442\u044c\u0441\u044f<\/h4>\n<p>\u041f\u043e\u0434\u043f\u0438\u0441\u044c \u043c\u0435\u0442\u043e\u0434\u0430, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u044b\u0439 \u0442\u0438\u043f, \u0434\u043e\u043b\u0436\u043d\u0430 \u0432 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 \u0441\u043e\u0432\u043f\u0430\u0441\u0442\u044c \u0441 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0439. \u041f\u0440\u0438 \u0440\u0430\u0441\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0438 \u0431\u0443\u0434\u0435\u0442 MissingMethodException \u2014 \u0441\u043d\u043e\u0432\u0430 \u043f\u0440\u0438 \u043f\u0435\u0440\u0432\u043e\u043c \u0432\u044b\u0437\u043e\u0432\u0435, \u0430 \u043d\u0435 \u043f\u0440\u0438 \u0441\u0431\u043e\u0440\u043a\u0435.<\/p>\n<h3>4. \u0413\u0434\u0435 UnsafeAccessor \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u044e\u0442 \u0432 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 \u043a\u043b\u0430\u0441\u0441\u043e\u0432<\/h3>\n<p>UnsafeAccessor \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0432 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 \u043a\u043b\u0430\u0441\u0441\u043e\u0432 7 \u0440\u0430\u0437. \u041e\u0434\u0438\u043d \u0438\u0437 \u0441\u043b\u0443\u0447\u0430\u0435\u0432 \u2014 <a href=\"https:\/\/github.com\/dotnet\/runtime\/blob\/60629d14374c56f1cb51819049ad1fa529307f8d\/src\/libraries\/System.Private.CoreLib\/src\/System\/Resources\/ResourceReader.Core.cs#L107\" rel=\"noopener nofollow\">ResourceReader<\/a>, \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043d\u0443\u0436\u0435\u043d BinaryFormatter:<\/p>\n<pre><code class=\"cs\">[UnsafeAccessor(UnsafeAccessorKind.Method, Name = \"Deserialize\")]private static extern object Deserialize(    [UnsafeAccessorType(BinaryFormatterTypeName)] object formatter,    Stream serializationStream); [UnsafeAccessor(UnsafeAccessorKind.Constructor)][return: UnsafeAccessorType(BinaryFormatterTypeName)]private static extern object CreateBinaryFormatter();<\/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>\u0412\u0442\u043e\u0440\u043e\u0439 \u0430\u0442\u0440\u0438\u0431\u0443\u0442 \u2014 <a href=\"https:\/\/github.com\/dotnet\/runtime\/blob\/60629d14374c56f1cb51819049ad1fa529307f8d\/src\/libraries\/System.Private.CoreLib\/src\/System\/Runtime\/CompilerServices\/UnsafeAccessorTypeAttribute.cs#L10\" rel=\"noopener nofollow\">UnsafeAccessorType<\/a>, \u043e\u043d \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u0432 .NET 10. \u0422\u0438\u043f \u0437\u0430\u0434\u0430\u0451\u0442\u0441\u044f \u0441\u0442\u0440\u043e\u043a\u043e\u0439, \u0440\u043e\u0432\u043d\u043e \u043a\u0430\u043a \u0432 Type.GetType, \u0438 \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0441\u0431\u043e\u0440\u043a\u0443 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u0430. \u0422\u0430\u043a \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 \u0442\u0438\u043f\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0432 \u0435\u0451 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044f\u0445 \u043d\u0435\u0442.<\/p>\n<p>\u0422\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u0432 <a href=\"https:\/\/github.com\/dotnet\/runtime\/blob\/60629d14374c56f1cb51819049ad1fa529307f8d\/src\/libraries\/System.Private.CoreLib\/src\/System\/AppDomain.cs#L421\" rel=\"noopener nofollow\">AppDomain<\/a> \u2014 \u0442\u0430\u043c \u0442\u0430\u043a\u0438\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u0434\u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f GenericPrincipal \u0438\u0437 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0438.<\/p>\n<p>\u041e\u0442\u0441\u044e\u0434\u0430 \u0438 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0433\u0440\u0430\u043d\u0438\u0446\u0430: \u043f\u0440\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0438 \u043a\u043e\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u0437\u043d\u0430\u0442\u044c \u0438\u043c\u044f \u043f\u043e\u043b\u044f \u0438\u043b\u0438 \u043c\u0435\u0442\u043e\u0434\u0430 \u0438 \u0435\u0433\u043e \u043f\u043e\u0434\u043f\u0438\u0441\u044c. \u0422\u0430\u043c, \u0433\u0434\u0435 \u0442\u0438\u043f \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u0432 \u0440\u0430\u043d\u0442\u0430\u0439\u043c\u0435 \u0438 \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u043d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u0435\u043d, \u0440\u0435\u0444\u043b\u0435\u043a\u0441\u0438\u044f \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u043c.<\/p>\n<h3>\u0413\u0440\u0430\u043d\u0438\u0446\u044b \u0437\u0430\u043c\u0435\u0440\u043e\u0432<\/h3>\n<p>\u0412\u0441\u0435 \u0437\u0430\u043c\u0435\u0440\u044b \u0441\u043d\u044f\u0442\u044b \u043d\u0430 x64 \u043f\u043e\u0434 Windows, \u043d\u0430 .NET 8, 9 \u0438 10.<\/p>\n<p>\u0423 \u0432\u0441\u0435\u0445 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u0432\u044b\u043d\u0435\u0441\u0435\u043d\u0430 \u0437\u0430 \u043f\u0440\u0435\u0434\u0435\u043b\u044b \u0437\u0430\u043c\u0435\u0440\u0430: \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u043e\u043b\u044f \u043d\u0430\u0439\u0434\u0435\u043d\u043e \u043e\u0434\u0438\u043d \u0440\u0430\u0437, \u0434\u0435\u0440\u0435\u0432\u043e \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043e, \u043c\u0435\u0442\u043e\u0434 \u0438\u0437 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439 IL \u0441\u043e\u0431\u0440\u0430\u043d, \u0434\u0435\u043b\u0435\u0433\u0430\u0442 \u0441\u043e\u0437\u0434\u0430\u043d. \u0412\u0430\u0440\u0438\u0430\u043d\u0442 \u0441 \u043f\u043e\u0438\u0441\u043a\u043e\u043c \u043f\u043e\u043b\u044f \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0438 \u0437\u0430\u043c\u0435\u0440\u0435\u043d \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u043e\u0439 \u0438 \u0432 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0438 \u0441 UnsafeAccessor \u043d\u0435 \u0443\u0447\u0430\u0441\u0442\u0432\u0443\u0435\u0442.<\/p>\n<p>UnsafeAccessor \u043d\u0435 \u043e\u0442\u043c\u0435\u043d\u044f\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043f\u0440\u0438 \u0441\u0431\u043e\u0440\u043a\u0435 \u0447\u0443\u0436\u043e\u0433\u043e \u043a\u043e\u0434\u0430: \u043e\u043d \u0441\u043d\u0438\u043c\u0430\u0435\u0442 \u0438\u0445 \u0442\u043e\u043b\u044c\u043a\u043e \u0443 \u0442\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d \u0441 \u044d\u0442\u0438\u043c \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u043c. \u041f\u043e\u0434\u043f\u0438\u0441\u044c \u0441\u0431\u043e\u0440\u043a\u0438 \u043d\u0438 \u043e\u0434\u0438\u043d \u0438\u0437 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u043d\u0435 \u043e\u0431\u0445\u043e\u0434\u0438\u0442.<\/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\/PrivateAccessProof\" rel=\"noopener nofollow\">PrivateAccessProof<\/a> \u2014 \u0437\u0430\u043c\u0435\u0440\u044b, \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\/libraries\/System.Private.CoreLib\/src\/System\/Runtime\/CompilerServices\/UnsafeAccessorAttribute.cs#L36\" rel=\"noopener nofollow\">UnsafeAccessorAttribute \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0430\u0445<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/dotnet\/runtime\/blob\/60629d14374c56f1cb51819049ad1fa529307f8d\/src\/libraries\/System.Private.CoreLib\/src\/System\/Runtime\/CompilerServices\/UnsafeAccessorTypeAttribute.cs#L10\" rel=\"noopener nofollow\">UnsafeAccessorType: \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0442\u0438\u043f\u0443 \u043f\u043e \u0438\u043c\u0435\u043d\u0438<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/dotnet\/runtime\/blob\/60629d14374c56f1cb51819049ad1fa529307f8d\/src\/libraries\/System.Private.CoreLib\/src\/System\/Resources\/ResourceReader.Core.cs#L107\" rel=\"noopener nofollow\">\u041a\u0430\u043a \u044d\u0442\u0438\u043c \u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f ResourceReader<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/dotnet\/runtime\/blob\/60629d14374c56f1cb51819049ad1fa529307f8d\/src\/libraries\/System.Private.CoreLib\/src\/System\/AppDomain.cs#L421\" rel=\"noopener nofollow\">\u0418 AppDomain<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/learn.microsoft.com\/dotnet\/api\/system.reflection.fieldinfo.getvalue\" rel=\"noopener nofollow\">FieldInfo.GetValue<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/learn.microsoft.com\/dotnet\/api\/system.reflection.emit.dynamicmethod\" rel=\"noopener nofollow\">DynamicMethod<\/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\/1080538\/\">https:\/\/habr.com\/ru\/articles\/1080538\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0427\u0442\u0435\u043d\u0438\u0435 \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044f \u0447\u0435\u0440\u0435\u0437 \u0440\u0435\u0444\u043b\u0435\u043a\u0441\u0438\u044e \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 8,96 \u043d\u0430\u043d\u043e\u0441\u0435\u043a\u0443\u043d\u0434\u044b \u0438 \u0432\u044b\u0434\u0435\u043b\u044f\u0435\u0442 24 \u0431\u0430\u0439\u0442\u0430 \u0432 \u043a\u0443\u0447\u0435. \u0422\u043e\u0442 \u0436\u0435 \u0434\u043e\u0441\u0442\u0443\u043f \u0431\u0435\u0437 \u0440\u0435\u0444\u043b\u0435\u043a\u0441\u0438\u0438 \u2014 0,25 \u043d\u0430\u043d\u043e\u0441\u0435\u043a\u0443\u043d\u0434\u044b \u0438 \u043d\u043e\u043b\u044c \u0431\u0430\u0439\u0442.\u0420\u0430\u0437\u043d\u0438\u0446\u0430 \u0432 35,8 \u0440\u0430\u0437\u0430, \u0430 \u043d\u0430 .NET 8 \u043e\u043d\u0430 \u0434\u043e\u0445\u043e\u0434\u0438\u043b\u0430 \u0434\u043e 108. \u0421\u043f\u043e\u0441\u043e\u0431 \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u0432 .NET 8, \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0431\u0435\u0437 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043a\u043e\u0434\u0430 \u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u043a\u043b\u0430\u0441\u0441\u043e\u0432.\u00a0\u041c\u0430\u0448\u0438\u043d\u0430\u041f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0421\u0438\u0441\u0442\u0435\u043c\u0430\u041a\u043e\u043c\u043f   1Intel Core i9-10900KF 3.70GHz, 10   \u044f\u0434\u0435\u0440Windows 10 22H2\u041a\u043e\u043c\u043f   2AMD Ryzen 9 5950X 3.39GHz, 16 \u044f\u0434\u0435\u0440Windows 10 1809\u041a\u043e\u043c\u043f   3Intel Xeon W-2255 3.70GHz, 10 \u044f\u0434\u0435\u0440Windows Server 2022\u041a\u043e\u043c\u043f   4Intel Xeon Silver 4314 2.40GHz, 2   CPU, 32 \u044f\u0434\u0440\u0430Windows Server 2022\u0412\u0441\u0435 \u043c\u0430\u0448\u0438\u043d\u044b x64\u0420\u0430\u043d\u0442\u0430\u0439\u043c\u044b .NET 8, 9 \u0438 10 \u2014 \u0432\u0441\u0435 \u0442\u0440\u0438 \u0432 \u043e\u0434\u043d\u043e\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0435 BenchmarkDotNet 0.15.8. \u0427\u0438\u0441\u043b\u0430 \u0432 \u0442\u0435\u043a\u0441\u0442\u0435 \u0441 AMD Ryzen 9 5950X, \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043f\u043e \u0432\u0441\u0435\u043c \u0447\u0435\u0442\u044b\u0440\u0451\u043c \u043c\u0430\u0448\u0438\u043d\u0430\u043c.1. \u041a\u0430\u043a \u0434\u043e\u0441\u0442\u0430\u0442\u044c \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u043e\u0435 \u043f\u043e\u043b\u0435\u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0415\u0441\u0442\u044c \u043a\u043b\u0430\u0441\u0441, \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043d\u0435\u043b\u044c\u0437\u044f: \u0447\u0443\u0436\u0430\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430, \u043f\u0430\u043a\u0435\u0442 \u0438\u0437 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430, \u0447\u0430\u0441\u0442\u044c \u0441\u0430\u043c\u043e\u0439 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b.internal sealed class Secret{    private string _token = &#171;TopSecret&#187;;    private int _counter = 42;}\u041f\u0440\u0438\u0432\u044b\u0447\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0434\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0434\u043e \u043f\u043e\u043b\u044f \u2014 \u0440\u0435\u0444\u043b\u0435\u043a\u0441\u0438\u044f:FieldInfo field = typeof(Secret).GetField(&#171;_token&#187;,    BindingFlags.Instance | BindingFlags.NonPublic); string token = (string)field.GetValue(secret);\u0421\u043f\u043e\u0441\u043e\u0431 \u0438\u0437 .NET 8 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a. \u041c\u0435\u0442\u043e\u0434 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d \u043a\u0430\u043a extern static, \u0442\u0435\u043b\u0430 \u0443 \u043d\u0435\u0433\u043e \u043d\u0435\u0442 \u2014 \u0435\u0433\u043e \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0440\u0430\u043d\u0442\u0430\u0439\u043c:[UnsafeAccessor(UnsafeAccessorKind.Field, Name = &#171;_token&#187;)]internal static extern ref string Token(Secret instance); string token = Token(secret);   \/\/ \u0447\u0442\u0435\u043d\u0438\u0435Token(secret) = &#171;\u0418\u0437\u043c\u0435\u043d\u0435\u043d\u043e&#187;;     \/\/ \u0437\u0430\u043f\u0438\u0441\u044c\u041c\u0435\u0442\u043e\u0434 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u043f\u043e\u043b\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u0434\u043d\u0438\u043c \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0438 \u0447\u0442\u0435\u043d\u0438\u0435, \u0438 \u0437\u0430\u043f\u0438\u0441\u044c.\u0427\u0442\u043e \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0437\u0430\u043c\u0435\u0440\u0427\u0442\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u044f \u0441\u043e \u0441\u0442\u0440\u043e\u043a\u043e\u0439. \u0412\u0441\u0451, \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c \u0437\u0430\u0440\u0430\u043d\u0435\u0435, \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u043e: \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u043e\u043b\u044f \u043d\u0430\u0439\u0434\u0435\u043d\u043e \u043e\u0434\u0438\u043d \u0440\u0430\u0437, \u0434\u0435\u0440\u0435\u0432\u043e \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043e, \u043c\u0435\u0442\u043e\u0434 \u0438\u0437 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439 IL \u0441\u043e\u0431\u0440\u0430\u043d.\u00a0\u0421\u043f\u043e\u0441\u043e\u0431\u041a\u043e\u043c\u043f 1\u041a\u043e\u043c\u043f 2\u041a\u043e\u043c\u043f 3\u041a\u043e\u043c\u043f 4\u043f\u0440\u044f\u043c\u043e\u0435   \u0447\u0442\u0435\u043d\u0438\u0435 \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043b\u0430\u0441\u0441\u04300,30060,86500,98380,7647UnsafeAccessor0,28980,75471,01820,7140\u0434\u0435\u0440\u0435\u0432\u043e   \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u04391,51031,67802,20352,7431\u043c\u0435\u0442\u043e\u0434   \u0438\u0437 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439 IL2,29862,15563,14874,3177\u0440\u0435\u0444\u043b\u0435\u043a\u0441\u0438\u044f   \u0441 \u0433\u043e\u0442\u043e\u0432\u044b\u043c \u043f\u043e\u043b\u0435\u043c2,25523,02062,96423,5407\u0440\u0435\u0444\u043b\u0435\u043a\u0441\u0438\u044f   \u0441 \u043f\u043e\u0438\u0441\u043a\u043e\u043c \u043f\u043e\u043b\u044f11,661511,147216,364215,4772\u041d\u0430\u043d\u043e\u0441\u0435\u043a\u0443\u043d\u0434\u044b, .NET 10\u00a0UnsafeAccessor \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0437\u0430 \u0442\u043e \u0436\u0435 \u0432\u0440\u0435\u043c\u044f, \u0447\u0442\u043e \u043f\u0440\u044f\u043c\u043e\u0435 \u0447\u0442\u0435\u043d\u0438\u0435 \u0432\u043d\u0443\u0442\u0440\u0438 \u0441\u0430\u043c\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430. \u0420\u0435\u0444\u043b\u0435\u043a\u0441\u0438\u044f \u0441 \u0433\u043e\u0442\u043e\u0432\u044b\u043c \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043c \u043f\u043e\u043b\u044f \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0435\u0435 \u0432 2,9\u20137,8 \u0440\u0430\u0437\u0430, \u0441 \u043f\u043e\u0438\u0441\u043a\u043e\u043c \u043f\u043e\u043b\u044f \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0438 \u2014 \u0432 14,8\u201340,2 \u0440\u0430\u0437\u0430.\u041f\u0440\u0438\u0447\u0438\u043d\u0430\u0420\u0435\u0444\u043b\u0435\u043a\u0441\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432 \u0440\u0430\u043d\u0442\u0430\u0439\u043c\u0435: \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u043e\u043b\u044f \u0445\u0440\u0430\u043d\u0438\u0442 \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435, \u0442\u0438\u043f \u0438 \u043f\u0440\u0430\u0432\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0430, \u0430 GetValue \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442, \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u043e \u043b\u0438 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0435, \u0438 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043a object.UnsafeAccessor \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u0440\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 \u043c\u0435\u0442\u043e\u0434\u0430. \u0420\u0430\u043d\u0442\u0430\u0439\u043c \u0438\u0449\u0435\u0442 \u043f\u043e\u043b\u0435 \u043e\u0434\u0438\u043d \u0440\u0430\u0437, \u043a\u043e\u0433\u0434\u0430 \u0432\u043f\u0435\u0440\u0432\u044b\u0435 \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442 \u043c\u0435\u0442\u043e\u0434 \u0434\u043e\u0441\u0442\u0443\u043f\u0430, \u0438 \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0432 \u043d\u0435\u0433\u043e \u043e\u0431\u044b\u0447\u043d\u043e\u0435 \u0447\u0442\u0435\u043d\u0438\u0435 \u043f\u043e \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u044e. \u0414\u0430\u043b\u044c\u0448\u0435 \u044d\u0442\u043e \u0442\u043e\u0442 \u0436\u0435 \u043c\u0430\u0448\u0438\u043d\u043d\u044b\u0439 \u043a\u043e\u0434, \u0447\u0442\u043e \u0443 \u043f\u0440\u044f\u043c\u043e\u0433\u043e \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043a \u043f\u043e\u043b\u044e.\u0413\u0434\u0435 \u043b\u0435\u0433\u043a\u043e \u043e\u0448\u0438\u0431\u0438\u0442\u044c\u0441\u044f\u0418\u043c\u044f \u043f\u043e\u043b\u044f \u0437\u0430\u0434\u0430\u0451\u0442\u0441\u044f \u0441\u0442\u0440\u043e\u043a\u043e\u0439, \u0438 \u043e\u043f\u0435\u0447\u0430\u0442\u043a\u0443 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u043d\u0435 \u0443\u0432\u0438\u0434\u0438\u0442. \u0421\u0431\u043e\u0440\u043a\u0430 \u043f\u0440\u043e\u0439\u0434\u0451\u0442, \u0430 \u043f\u0440\u0438 \u043f\u0435\u0440\u0432\u043e\u043c \u0432\u044b\u0437\u043e\u0432\u0435 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435:[UnsafeAccessor(UnsafeAccessorKind.Field, Name = &#171;_tokenn&#187;)]internal static extern ref string Missing(Secret instance); \/\/ \u0421\u0431\u043e\u0440\u043a\u0430 \u043f\u0440\u043e\u0448\u043b\u0430: True\/\/   \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.MissingFieldException\/\/   \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435:      Field not found: &#8216;Secret._tokenn&#8217;.\u0420\u0435\u0444\u043b\u0435\u043a\u0441\u0438\u044f \u0432 \u0442\u043e\u0439 \u0436\u0435 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 null \u0438\u0437 GetField, \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0434\u043e \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044f.\u041f\u043e\u0438\u0441\u043a \u0438\u0434\u0451\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0442\u043e\u043c \u0442\u0438\u043f\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443\u043a\u0430\u0437\u0430\u043d \u043f\u0435\u0440\u0432\u044b\u043c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u043c. \u041f\u043e \u0431\u0430\u0437\u043e\u0432\u044b\u043c \u0442\u0438\u043f\u0430\u043c \u0440\u0430\u043d\u0442\u0430\u0439\u043c \u043d\u0435 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442: \u043f\u043e\u043b\u0435, \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u043d\u043e\u0435 \u0432 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u0435, \u0442\u0430\u043a\u0438\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u043d\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u044c.\u0423 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u043f\u0435\u0440\u0432\u044b\u0439 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u043d\u0443\u0436\u043d\u043e \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0442\u044c \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435. \u0418\u043d\u0430\u0447\u0435 \u043c\u0435\u0442\u043e\u0434 \u043f\u043e\u043b\u0443\u0447\u0438\u0442 \u043a\u043e\u043f\u0438\u044e, \u0438 \u0437\u0430\u043f\u0438\u0441\u044c \u0432 \u043f\u043e\u043b\u0435 \u043f\u043e\u0442\u0435\u0440\u044f\u0435\u0442\u0441\u044f:[UnsafeAccessor(UnsafeAccessorKind.Field, Name = &#171;_counter&#187;)]internal static extern ref int ValueCounter(ref SecretValue instance);2. \u041e\u0442\u043a\u0443\u0434\u0430 \u0431\u0435\u0440\u0443\u0442\u0441\u044f 0,25 \u043d\u0430\u043d\u043e\u0441\u0435\u043a\u0443\u043d\u0434\u044b\u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0422\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u043d\u043e \u043f\u043e\u043b\u0435 \u043d\u0435 \u0441\u0442\u0440\u043e\u043a\u0430, \u0430 \u0447\u0438\u0441\u043b\u043e:[UnsafeAccessor(UnsafeAccessorKind.Field, Name = &#171;_counter&#187;)]internal static extern ref int Counter(Secret instance);\u0427\u0442\u043e \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0437\u0430\u043c\u0435\u0440\u0421\u043f\u043e\u0441\u043e\u0431\u041a\u043e\u043c\u043f 1\u041a\u043e\u043c\u043f 2\u041a\u043e\u043c\u043f 3\u041a\u043e\u043c\u043f 4\u043f\u0440\u044f\u043c\u043e\u0435   \u0447\u0442\u0435\u043d\u0438\u0435 \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043b\u0430\u0441\u0441\u04300,39870,33540,46340,7005UnsafeAccessor0,40530,25040,48260,7247\u0440\u0435\u0444\u043b\u0435\u043a\u0441\u0438\u044f7,56328,960611,706513,2518\u041d\u0430\u043d\u043e\u0441\u0435\u043a\u0443\u043d\u0434\u044b, .NET 10. \u0423 \u0440\u0435\u0444\u043b\u0435\u043a\u0441\u0438\u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e 24 \u0431\u0430\u0439\u0442\u0430 \u0432 \u043a\u0443\u0447\u0435\u00a0\u0420\u0430\u0437\u043d\u0438\u0446\u0430 \u043e\u0442 18,3 \u0434\u043e 35,8 \u0440\u0430\u0437\u0430. \u0418 \u043a \u043d\u0435\u0439 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f 24 \u0431\u0430\u0439\u0442\u0430 \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u0435 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u2014 \u0441\u0442\u043e\u043b\u0431\u0435\u0446 Allocated \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432 \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\u0430GetValue \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 object. \u0427\u0438\u0441\u043b\u043e \u0437\u043d\u0430\u0447\u0438\u043c\u043e\u0433\u043e \u0442\u0438\u043f\u0430 \u0432 object \u043d\u0435 \u043f\u043e\u043c\u0435\u0449\u0430\u0435\u0442\u0441\u044f: \u043f\u043e\u0434 \u043d\u0435\u0433\u043e \u0432\u044b\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0431\u044a\u0435\u043a\u0442 \u0432 \u043a\u0443\u0447\u0435, \u043a\u0443\u0434\u0430 \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435. \u042d\u0442\u043e \u0438 \u0435\u0441\u0442\u044c 24 \u0431\u0430\u0439\u0442\u0430: 16 \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u044b\u0445 \u043f\u043b\u044e\u0441 8 \u043f\u043e\u0434 \u0434\u0430\u043d\u043d\u044b\u0435 \u0441 \u043e\u043a\u0440\u0443\u0433\u043b\u0435\u043d\u0438\u0435\u043c.UnsafeAccessor \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 ref int. \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0442\u0430\u043c, \u0433\u0434\u0435 \u0431\u044b\u043b\u043e, \u0432 \u043a\u0443\u0447\u0443 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442.\u041d\u0430 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u0435 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0439 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u043d\u0430\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f 24 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u0430 \u0431\u0430\u0439\u0442 \u043c\u0443\u0441\u043e\u0440\u0430, \u0438 \u0432\u0441\u044f \u044d\u0442\u0430 \u043f\u0430\u043c\u044f\u0442\u044c \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u0447\u0435\u0440\u0435\u0437 \u0441\u0431\u043e\u0440\u0449\u0438\u043a \u043c\u0443\u0441\u043e\u0440\u0430.\u0413\u0434\u0435 \u043b\u0435\u0433\u043a\u043e \u043e\u0448\u0438\u0431\u0438\u0442\u044c\u0441\u044f\u0421\u0447\u0438\u0442\u0430\u0442\u044c, \u0447\u0442\u043e \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u0430 \u043d\u0430 \u0432\u0441\u0435\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445. \u041e\u043d\u0430 \u0440\u0430\u0437\u043d\u0430\u044f, \u0438 \u0441\u0438\u043b\u044c\u043d\u043e:\u00a0\u0420\u0430\u043d\u0442\u0430\u0439\u043c\u041a\u043e\u043c\u043f 1\u041a\u043e\u043c\u043f 2\u041a\u043e\u043c\u043f 3\u041a\u043e\u043c\u043f 4.NET   891,7108,397,678,2.NET   976,6117,484,957,2.NET   1018,735,824,318,3\u0412\u043e \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437 \u0440\u0435\u0444\u043b\u0435\u043a\u0441\u0438\u044f \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0435\u0435 \u043f\u0440\u0438 \u0447\u0442\u0435\u043d\u0438\u0438 \u0447\u0438\u0441\u043b\u0430\u00a0\u0412 .NET 10 \u0440\u0435\u0444\u043b\u0435\u043a\u0441\u0438\u044e \u0443\u0441\u043a\u043e\u0440\u0438\u043b\u0438: \u043d\u0430 AMD Ryzen 9 5950X \u0447\u0442\u0435\u043d\u0438\u0435 \u0447\u0438\u0441\u043b\u0430 \u0437\u0430\u043d\u0438\u043c\u0430\u043b\u043e 33,74 \u043d\u0430\u043d\u043e\u0441\u0435\u043a\u0443\u043d\u0434\u044b \u043d\u0430 \u0432\u043e\u0441\u044c\u043c\u0451\u0440\u043a\u0435 \u0438 8,96 \u043d\u0430 \u0434\u0435\u0441\u044f\u0442\u043a\u0435. \u041e\u0442\u0441\u0442\u0430\u0432\u0430\u043d\u0438\u0435 \u0441\u043e\u043a\u0440\u0430\u0442\u0438\u043b\u043e\u0441\u044c \u0432\u0442\u0440\u043e\u0435, \u043d\u043e \u043d\u0438\u043a\u0443\u0434\u0430 \u043d\u0435 \u0434\u0435\u043b\u043e\u0441\u044c.3. \u041f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434\u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0422\u0435\u043c \u0436\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u043c \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0434\u043e\u0441\u0442\u0443\u043f \u0438 \u043a \u043c\u0435\u0442\u043e\u0434\u0443. \u041c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u0438\u0434 \u0434\u043e\u0441\u0442\u0443\u043f\u0430:[UnsafeAccessor(UnsafeAccessorKind.Method, Name = &#171;Reveal&#187;)]internal static extern string Reveal(Secret instance, int times);\u0427\u0442\u043e \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0437\u0430\u043c\u0435\u0440\u0421\u043f\u043e\u0441\u043e\u0431\u041a\u043e\u043c\u043f 1\u041a\u043e\u043c\u043f 2\u041a\u043e\u043c\u043f 3\u041a\u043e\u043c\u043f 4\u043f\u0440\u044f\u043c\u043e\u0439   \u0432\u044b\u0437\u043e\u0432 \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043b\u0430\u0441\u0441\u04308,88611,7014,0515,76UnsafeAccessor9,04110,5413,9517,68\u0434\u0435\u043b\u0435\u0433\u0430\u0442   \u043e\u0442 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043c\u0435\u0442\u043e\u0434\u043011,46314,4316,1220,65\u0440\u0435\u0444\u043b\u0435\u043a\u0441\u0438\u044f25,87633,4540,2747,96\u041d\u0430\u043d\u043e\u0441\u0435\u043a\u0443\u043d\u0434\u044b, .NET 10\u00a0\u0420\u0430\u0437\u043d\u0438\u0446\u0430 \u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u043d\u0430 \u043f\u043e\u043b\u044f\u0445: 2,7\u20133,2 \u0440\u0430\u0437\u0430. \u0417\u0430\u0442\u043e \u0443 \u0440\u0435\u0444\u043b\u0435\u043a\u0441\u0438\u0438 104 \u0431\u0430\u0439\u0442\u0430 \u043f\u0440\u043e\u0442\u0438\u0432 48 \u0443 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445.\u041f\u0440\u0438\u0447\u0438\u043d\u0430MethodInfo.Invoke \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u043c object. \u041c\u0430\u0441\u0441\u0438\u0432 \u0432\u044b\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0432\u044b\u0437\u043e\u0432\u0435, \u0447\u0438\u0441\u043b\u043e \u0432 \u043d\u0451\u043c \u0443\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043a object \u0438 \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043e\u0431\u0440\u0430\u0442\u043d\u043e. \u041e\u0442\u0441\u044e\u0434\u0430 \u0438 \u043b\u0438\u0448\u043d\u0438\u0435 56 \u0431\u0430\u0439\u0442.\u0413\u0434\u0435 \u043b\u0435\u0433\u043a\u043e \u043e\u0448\u0438\u0431\u0438\u0442\u044c\u0441\u044f\u041f\u043e\u0434\u043f\u0438\u0441\u044c \u043c\u0435\u0442\u043e\u0434\u0430, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u044b\u0439 \u0442\u0438\u043f, \u0434\u043e\u043b\u0436\u043d\u0430 \u0432 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 \u0441\u043e\u0432\u043f\u0430\u0441\u0442\u044c \u0441 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0439. \u041f\u0440\u0438 \u0440\u0430\u0441\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0438 \u0431\u0443\u0434\u0435\u0442 MissingMethodException \u2014 \u0441\u043d\u043e\u0432\u0430 \u043f\u0440\u0438 \u043f\u0435\u0440\u0432\u043e\u043c \u0432\u044b\u0437\u043e\u0432\u0435, \u0430 \u043d\u0435 \u043f\u0440\u0438 \u0441\u0431\u043e\u0440\u043a\u0435.4. \u0413\u0434\u0435 UnsafeAccessor \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u044e\u0442 \u0432 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 \u043a\u043b\u0430\u0441\u0441\u043e\u0432UnsafeAccessor \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0432 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 \u043a\u043b\u0430\u0441\u0441\u043e\u0432 7 \u0440\u0430\u0437. \u041e\u0434\u0438\u043d \u0438\u0437 \u0441\u043b\u0443\u0447\u0430\u0435\u0432 \u2014 ResourceReader, \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043d\u0443\u0436\u0435\u043d BinaryFormatter:[UnsafeAccessor(UnsafeAccessorKind.Method, Name = &#171;Deserialize&#187;)]private static extern object Deserialize(    [UnsafeAccessorType(BinaryFormatterTypeName)] object formatter,    Stream serializationStream); [UnsafeAccessor(UnsafeAccessorKind.Constructor)][return: UnsafeAccessorType(BinaryFormatterTypeName)]private static extern object CreateBinaryFormatter();\u0412\u0442\u043e\u0440\u043e\u0439 \u0430\u0442\u0440\u0438\u0431\u0443\u0442 \u2014 UnsafeAccessorType, \u043e\u043d \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u0432 .NET 10. \u0422\u0438\u043f \u0437\u0430\u0434\u0430\u0451\u0442\u0441\u044f \u0441\u0442\u0440\u043e\u043a\u043e\u0439, \u0440\u043e\u0432\u043d\u043e \u043a\u0430\u043a \u0432 Type.GetType, \u0438 \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0441\u0431\u043e\u0440\u043a\u0443 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u0430. \u0422\u0430\u043a \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 \u0442\u0438\u043f\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0432 \u0435\u0451 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044f\u0445 \u043d\u0435\u0442.\u0422\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u0432 AppDomain \u2014 \u0442\u0430\u043c \u0442\u0430\u043a\u0438\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u0434\u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f GenericPrincipal \u0438\u0437 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0438.\u041e\u0442\u0441\u044e\u0434\u0430 \u0438 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0433\u0440\u0430\u043d\u0438\u0446\u0430: \u043f\u0440\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0438 \u043a\u043e\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u0437\u043d\u0430\u0442\u044c \u0438\u043c\u044f \u043f\u043e\u043b\u044f \u0438\u043b\u0438 \u043c\u0435\u0442\u043e\u0434\u0430 \u0438 \u0435\u0433\u043e \u043f\u043e\u0434\u043f\u0438\u0441\u044c. \u0422\u0430\u043c, \u0433\u0434\u0435 \u0442\u0438\u043f \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u0432 \u0440\u0430\u043d\u0442\u0430\u0439\u043c\u0435 \u0438 \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u043d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u0435\u043d, \u0440\u0435\u0444\u043b\u0435\u043a\u0441\u0438\u044f \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u043c.\u0413\u0440\u0430\u043d\u0438\u0446\u044b \u0437\u0430\u043c\u0435\u0440\u043e\u0432\u0412\u0441\u0435 \u0437\u0430\u043c\u0435\u0440\u044b \u0441\u043d\u044f\u0442\u044b \u043d\u0430 x64 \u043f\u043e\u0434 Windows, \u043d\u0430 .NET 8, 9 \u0438 10.\u0423 \u0432\u0441\u0435\u0445 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u0432\u044b\u043d\u0435\u0441\u0435\u043d\u0430 \u0437\u0430 \u043f\u0440\u0435\u0434\u0435\u043b\u044b \u0437\u0430\u043c\u0435\u0440\u0430: \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u043e\u043b\u044f \u043d\u0430\u0439\u0434\u0435\u043d\u043e \u043e\u0434\u0438\u043d \u0440\u0430\u0437, \u0434\u0435\u0440\u0435\u0432\u043e \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043e, \u043c\u0435\u0442\u043e\u0434 \u0438\u0437 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439 IL \u0441\u043e\u0431\u0440\u0430\u043d, \u0434\u0435\u043b\u0435\u0433\u0430\u0442 \u0441\u043e\u0437\u0434\u0430\u043d. \u0412\u0430\u0440\u0438\u0430\u043d\u0442 \u0441 \u043f\u043e\u0438\u0441\u043a\u043e\u043c \u043f\u043e\u043b\u044f \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0438 \u0437\u0430\u043c\u0435\u0440\u0435\u043d \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u043e\u0439 \u0438 \u0432 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0438 \u0441 UnsafeAccessor \u043d\u0435 \u0443\u0447\u0430\u0441\u0442\u0432\u0443\u0435\u0442.UnsafeAccessor \u043d\u0435 \u043e\u0442\u043c\u0435\u043d\u044f\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043f\u0440\u0438 \u0441\u0431\u043e\u0440\u043a\u0435 \u0447\u0443\u0436\u043e\u0433\u043e \u043a\u043e\u0434\u0430: \u043e\u043d \u0441\u043d\u0438\u043c\u0430\u0435\u0442 \u0438\u0445 \u0442\u043e\u043b\u044c\u043a\u043e \u0443 \u0442\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d \u0441 \u044d\u0442\u0438\u043c \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u043c. \u041f\u043e\u0434\u043f\u0438\u0441\u044c \u0441\u0431\u043e\u0440\u043a\u0438 \u043d\u0438 \u043e\u0434\u0438\u043d \u0438\u0437 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u043d\u0435 \u043e\u0431\u0445\u043e\u0434\u0438\u0442.\u041a\u043e\u0434 \u0438\u0437 \u0441\u0442\u0430\u0442\u044c\u0438PrivateAccessProof \u2014 \u0437\u0430\u043c\u0435\u0440\u044b, \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\u0421\u0441\u044b\u043b\u043a\u0438UnsafeAccessorAttribute \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0430\u0445UnsafeAccessorType: \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0442\u0438\u043f\u0443 \u043f\u043e \u0438\u043c\u0435\u043d\u0438\u041a\u0430\u043a \u044d\u0442\u0438\u043c \u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f ResourceReader\u0418 AppDomainFieldInfo.GetValueDynamicMethod\u0412\u0441\u0435\u043c \u0443\u0434\u0430\u0447\u0438 \u0438 \u0434\u043e \u043d\u043e\u0432\u044b\u0445 \u0432\u0441\u0442\u0440\u0435\u0447!\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 https:\/\/habr.com\/ru\/articles\/1080538\/<\/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-494132","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/494132","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=494132"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/494132\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=494132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=494132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=494132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}