{"id":259113,"date":"2015-06-10T21:57:02","date_gmt":"2015-06-10T17:57:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=259113"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=259113","title":{"rendered":"\u041c\u0438\u0433\u0440\u0430\u0446\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u2014 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u043a\u043e\u0434\u0430"},"content":{"rendered":"<p>     \t\u0414\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u2014 \u0441 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u2014 \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0437\u0430\u0434\u0443\u043c\u0430\u043d\u043d\u043e\u0435 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435 \u043c\u043e\u0435\u0439 \u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 &quot;<a href=\"http:\/\/habrahabr.ru\/post\/259799\/\">\u00ab\u041c\u0438\u0433\u0440\u0430\u0446\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u2014 \u043c\u0438\u0444\u044b \u0438 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c<\/a>\u00bb, \u0430 \u0441 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u2014 \u043e\u0442\u0432\u0435\u0442 \u043d\u0430 \u0447\u0430\u0441\u0442\u044c \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u0434\u0430\u0432\u0430\u043b\u0438 \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u0425\u0430\u0431\u0440\u0430\u0432\u0447\u0430\u043d\u0435  <a href=\"http:\/\/habrahabr.ru\/users\/vladsharikov\/\" class=\"user_link\">vladsharikov<\/a>,  <a href=\"http:\/\/habrahabr.ru\/users\/lair\/\" class=\"user_link\">lair<\/a> \u0438  <a href=\"http:\/\/habrahabr.ru\/users\/berez\/\" class=\"user_link\">berez<\/a>.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h4>\u041a\u043e\u043d\u0432\u0435\u0440\u0442\u0430\u0446\u0438\u044f \u043a\u043e\u0434\u0430 \u0441 Delphi \u043d\u0430 C#<\/h4>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430, \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u043f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0430\u0446\u0438\u0438 \u043a\u043e\u0434\u0430 \u043d\u0430 Delphi \u0432 \u043a\u043e\u0434 \u043d\u0430 C#:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434 \u043d\u0430 Delphi<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"delphi\">unit Unit3;  interface  type   TMyClass = class     _str: string;     constructor Create;     procedure setStr(s2: string);   public     class var       FClassField: integer;   end;   TMyClassD = class of TMyClass;  procedure DoSomeThing;  implementation  procedure DoSomeThing; begin  end; { TMyClass }  constructor TMyClass.Create; var   c: char;   i: byte;   cod: integer;   s: string;   cls: TMyClassD; begin   cls := TMyClass;   inherited;   DoSomeThing;   Val('5', i, cod);   c := '1';   s := c; end;  var   cls: TMyClass;   s: string;  procedure TMyClass.setStr(s2: string); begin   s2[4] := 'a'; end;  initialization   cls := TMyClass.Create;   s := '123456';   cls._str := s;   s[3] := '0';   cls.setStr(s); end. <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0438, \u043a\u043e\u0434 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u0430\u043a\u043e\u0439:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434 C#<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Data; using System.Linq; using System.IO; using System.Text; using FastCode.Delphi.Core._System;  namespace Project3 {     public static partial class Unit3_Module {          public static void Unit3_Initialization_() {             cls = TMyClass.Create();             s = &quot;123456&quot;;             cls._str = s;             \/\/s[3] = '0';             s = s.Substring(0, 2) + '0' + s.Substring(3);             cls.setStr(s);         }           public static void DoSomeThing() {         }           internal static TMyClass cls;          internal static string s;     }     public partial class TMyClass : TObject {          public override void __Create__() {             Char c;             byte i;             int cod;             string s;             Class_of_TMyClass cls;             cls = Class_of_TMyClass.Instance;             base.__Create__();             Unit3_Module.DoSomeThing();             System_Module.Val('5'.ToString(), out i, out cod);             c = '1';             s = c.ToString();         }           public void setStr(string s2) {             \/\/s2[4] = 'a';             s2 = s2.Substring(0, 3) + 'a' + s2.Substring(4);         }           public static TMyClass Create() {             TMyClass _instance = new TMyClass();             _instance.__Create__();             return _instance;         }           public string _str;          public static int FClassField;     }     public partial class Class_of_TMyClass {          protected Class_of_TMyClass() {         }           public TMyClass Create() {             return TMyClass.Create();         }           public static Class_of_TMyClass Instance = new Class_of_TMyClass();          public int FClassField { get { return TMyClass.FClassField; } set { TMyClass.FClassField = value; } }     } }  <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0418 \u0434\u0430, \u043a\u043e\u0434 \u043d\u0430 C# \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u043e\u0441\u043b\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438.<br \/>  \u0415\u0441\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u0441\u043b\u043e\u0436\u043d\u044b\u0435 \u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435 \u043c\u0435\u0441\u0442\u0430 \u2014 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u0441 \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u043c\u0438 (\u0435\u0441\u043b\u0438 \u043a\u0442\u043e \u0437\u043d\u0430\u0435\u0442 Delphi \u2014 \u043f\u043e\u0439\u043c\u0443\u0442), \u043a \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0435\u0441\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043f\u043e \u0438\u043c\u0435\u043d\u0438, \u0442\u043e \u0435\u0441\u0442\u044c \u0432 \u0444\u043e\u0440\u043c\u0435 Obj.Items[index], \u043d\u043e \u043f\u0440\u044f\u043c\u043e \u0441\u0435\u0439\u0447\u0430\u0441 \u043f\u043e\u0434 \u0440\u0443\u043a\u043e\u0439 \u044d\u0442\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u043d\u0435\u0442.  <\/p>\n<h4>\u0412\u043d\u0435\u0448\u043d\u0438\u0439 \u0432\u0438\u0434 \u0432 FoxPro<\/h4>\n<p>  \u041d\u0430\u043a\u0438\u0434\u0430\u043b, \u043f\u043e-\u0431\u044b\u0441\u0442\u0440\u043e\u043c\u0443, \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 FoxPro, \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0435:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/4b8\/ba2\/03b\/4b8ba203bfc242eba94dac1a8720130e.png\"\/><br \/>  \u0412\u043d\u0435\u0448\u043d\u0438\u0439 \u0432\u0438\u0434 \u0432 C# + WPF \u043d\u0438\u0436\u0435. <br \/>  <i>\u0418\u0437\u0432\u0438\u043d\u0438\u0442\u0435 \u2014 \u043f\u043e\u043b\u043d\u044b\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u0442\u0435\u043c, \u0441 \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u043c\u0438 \u043a\u043d\u043e\u043f\u043a\u0430\u043c\u0438 \u043d\u0430 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0435 \u043e\u043a\u043d\u0430 \u0438 \u0441\u043c\u0435\u043d\u043d\u044b\u043c\u0438 \u0436\u0435 \u0441\u0442\u0438\u043b\u044f\u043c\u0438 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432, \u0438\u0441\u043a\u0430\u0442\u044c \u043d\u0435 \u0441\u0442\u0430\u043b<\/i><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/122\/022\/8db\/1220228db10a40eaab89c0f9d72bfcb3.png\"\/>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0417\u0434\u0435\u0441\u044c \u0442\u0440\u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0442\u0435\u043c\u044b<\/b><\/p>\n<div class=\"spoiler_text\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/2fc\/078\/44f\/2fc07844f8df48a992d7a0921b679b26.png\"\/><br \/>  Glass<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/ca5\/ffd\/081\/ca5ffd081aca46ac967ebee5e1df2cf9.png\"\/><br \/>  Steel Blue gradient<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/fa1\/332\/fa7\/fa1332fa744949fa9ed1e0a9497fd31d.png\"\/><br \/>  Metro Light  <\/div>\n<\/div>\n<p>  \u0415\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u0435\u0449\u0451 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u043f\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0430\u0446\u0438\u0438 \u2014 \u043f\u0440\u043e\u0448\u0443 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438.<br \/>  P.S. \u041f\u0435\u0440\u0435\u0432\u043e\u0434 \u0441 Delphi \u043d\u0430 C# \u2014 \u043e\u0434\u0438\u043d \u0438\u0437 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432-\u0442\u0435\u0441\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u043e\u0442\u043b\u0430\u0434\u043a\u0438 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0435\u0440\u0430.<br \/>  P.P.S. \u0424\u043e\u0440\u043c\u0430 \u043d\u0430 FoxPro \u0441\u0434\u0435\u043b\u0430\u043d\u0430 \u00ab\u043d\u0430\u0441\u043f\u0435\u0445\u00bb, \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u0438.     \t<\/p>\n<div class=\"clear\"><\/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=\"http:\/\/habrahabr.ru\/post\/260023\/\"> http:\/\/habrahabr.ru\/post\/260023\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>     \t\u0414\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u2014 \u0441 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u2014 \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0437\u0430\u0434\u0443\u043c\u0430\u043d\u043d\u043e\u0435 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435 \u043c\u043e\u0435\u0439 \u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 &quot;<a href=\"http:\/\/habrahabr.ru\/post\/259799\/\">\u00ab\u041c\u0438\u0433\u0440\u0430\u0446\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u2014 \u043c\u0438\u0444\u044b \u0438 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c<\/a>\u00bb, \u0430 \u0441 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u2014 \u043e\u0442\u0432\u0435\u0442 \u043d\u0430 \u0447\u0430\u0441\u0442\u044c \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u0434\u0430\u0432\u0430\u043b\u0438 \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u0425\u0430\u0431\u0440\u0430\u0432\u0447\u0430\u043d\u0435  <a href=\"http:\/\/habrahabr.ru\/users\/vladsharikov\/\" class=\"user_link\">vladsharikov<\/a>,  <a href=\"http:\/\/habrahabr.ru\/users\/lair\/\" class=\"user_link\">lair<\/a> \u0438  <a href=\"http:\/\/habrahabr.ru\/users\/berez\/\" class=\"user_link\">berez<\/a>.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-259113","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/259113","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=259113"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/259113\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=259113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=259113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=259113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}