{"id":787,"date":"2023-03-11T11:33:37","date_gmt":"2023-03-11T11:33:37","guid":{"rendered":"https:\/\/dijix.com.ua\/blog\/?p=787"},"modified":"2023-03-11T11:33:37","modified_gmt":"2023-03-11T11:33:37","slug":"kak-sdelat-zmejku-na-c","status":"publish","type":"post","link":"https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-zmejku-na-c\/","title":{"rendered":"\u042f\u043a \u0437\u0440\u043e\u0431\u0438\u0442\u0438 \u0437\u043c\u0456\u0439\u043a\u0443 [C#]"},"content":{"rendered":"<p>\u0423 \u0446\u0456\u0439 \u0441\u0442\u0430\u0442\u0442\u0456 \u043c\u0438 \u0440\u043e\u0437\u0433\u043b\u044f\u043d\u0435\u043c\u043e \u044f\u043a \u0441\u0442\u0432\u043e\u0440\u0438\u0442\u0438 \u0433\u0440\u0443 \u0432 \u0437\u043c\u0456\u0439\u043a\u0443 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u043e\u043c\u0443 \u0434\u043e\u0434\u0430\u0442\u043a\u0443 \u043d\u0430 C#, \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u044e\u0447\u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u0456 \u043c\u0435\u0445\u0430\u043d\u0456\u043a\u0438.<\/p>\n<p><strong>\u0417\u043c\u0456\u0439\u043a\u0430<\/strong> &#8211; \u0446\u0435 \u043a\u043b\u0430\u0441\u0438\u0447\u043d\u0430 \u0430\u0440\u043a\u0430\u0434\u043d\u0430 \u0433\u0440\u0430, \u0432 \u044f\u043a\u0456\u0439 \u0433\u0440\u0430\u0432\u0435\u0446\u044c \u043a\u0435\u0440\u0443\u0454 \u0437\u043c\u0456\u0454\u044e, \u0449\u043e \u0440\u043e\u0441\u0442\u0435 \u0432 \u0434\u043e\u0432\u0436\u0438\u043d\u0443 \u0432 \u043c\u0456\u0440\u0443 \u043f\u043e\u0457\u0434\u0430\u043d\u043d\u044f \u0457\u0436\u0456. \u0413\u0440\u0430 \u0432\u0435\u0434\u0435\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u0440\u044f\u043c\u043e\u043a\u0443\u0442\u043d\u0456\u0439 \u0441\u0456\u0442\u0446\u0456 \u0430\u0431\u043e \u0434\u043e\u0448\u0446\u0456, \u0434\u0435 \u0437\u043c\u0456\u044f \u0431\u0435\u0437\u043f\u0435\u0440\u0435\u0440\u0432\u043d\u043e \u0440\u0443\u0445\u0430\u0454\u0442\u044c\u0441\u044f \u0432 \u043f\u0435\u0432\u043d\u043e\u043c\u0443 \u043d\u0430\u043f\u0440\u044f\u043c\u043a\u0443, \u043f\u043e\u043a\u0438 \u043d\u0435 \u0437\u0456\u0442\u043a\u043d\u0435\u0442\u044c\u0441\u044f \u0437\u0456 \u0441\u0442\u0456\u043d\u043e\u044e \u0430\u0431\u043e \u0432\u043b\u0430\u0441\u043d\u0438\u043c \u0442\u0456\u043b\u043e\u043c. \u0413\u0440\u0430\u0432\u0435\u0446\u044c \u043f\u043e\u0432\u0438\u043d\u0435\u043d \u043a\u0435\u0440\u0443\u0432\u0430\u0442\u0438 \u0437\u043c\u0456\u0454\u044e, \u0449\u043e\u0431 \u0437&#8217;\u0457\u0441\u0442\u0438 \u044f\u043a\u043e\u043c\u043e\u0433\u0430 \u0431\u0456\u043b\u044c\u0448\u0435 \u0457\u0436\u0456, \u0443\u043d\u0438\u043a\u0430\u044e\u0447\u0438 \u043f\u0440\u0438 \u0446\u044c\u043e\u043c\u0443 \u0437\u0456\u0442\u043a\u043d\u0435\u043d\u044c. \u0413\u0440\u0430 \u0441\u0442\u0430\u0454 \u0434\u0435\u0434\u0430\u043b\u0456 \u0441\u043a\u043b\u0430\u0434\u043d\u0456\u0448\u043e\u044e, \u043e\u0441\u043a\u0456\u043b\u044c\u043a\u0438 \u0437\u043c\u0456\u044f \u0441\u0442\u0430\u0454 \u0434\u0435\u0434\u0430\u043b\u0456 \u0434\u043e\u0432\u0448\u043e\u044e, \u0456 \u0443\u043d\u0438\u043a\u043d\u0443\u0442\u0438 \u0437\u0456\u0442\u043a\u043d\u0435\u043d\u044c \u0441\u0442\u0430\u0454 \u0434\u0435\u0434\u0430\u043b\u0456 \u0432\u0430\u0436\u0447\u0435. \u041c\u0435\u0442\u0430 \u0433\u0440\u0438 &#8211; \u043d\u0430\u0431\u0440\u0430\u0442\u0438 \u044f\u043a\u043e\u043c\u043e\u0433\u0430 \u0431\u0456\u043b\u044c\u0448\u0435 \u043e\u0447\u043e\u043a, \u043f\u043e\u0457\u0434\u0430\u044e\u0447\u0438 \u0457\u0436\u0443. \u0413\u0440\u0430 \u0437\u0430\u043a\u0456\u043d\u0447\u0443\u0454\u0442\u044c\u0441\u044f, \u043a\u043e\u043b\u0438 \u0437\u043c\u0456\u044f \u0441\u0442\u0438\u043a\u0430\u0454\u0442\u044c\u0441\u044f \u0437\u0456 \u0441\u0442\u0456\u043d\u043e\u044e \u0430\u0431\u043e \u0432\u043b\u0430\u0441\u043d\u0438\u043c \u0442\u0456\u043b\u043e\u043c. \u0417\u043c\u0456\u0439\u043a\u0430 &#8211; \u0446\u0435 \u043f\u0440\u043e\u0441\u0442\u0430, \u0430\u043b\u0435 \u0437\u0430\u0445\u043e\u043f\u043b\u0438\u0432\u0430 \u0433\u0440\u0430, \u044f\u043a\u0430 \u043f\u043e\u0434\u043e\u0431\u0430\u0454\u0442\u044c\u0441\u044f \u0433\u0440\u0430\u0432\u0446\u044f\u043c \u0440\u0456\u0437\u043d\u043e\u0433\u043e \u0432\u0456\u043a\u0443 \u043f\u0440\u043e\u0442\u044f\u0433\u043e\u043c \u0434\u0435\u0441\u044f\u0442\u0438\u043b\u0456\u0442\u044c.<\/p>\n<p>\u041e\u0441\u044c \u043f\u0440\u0438\u043a\u043b\u0430\u0434 \u0440\u0435\u0430\u043b\u0456\u0437\u0430\u0446\u0456\u0457 \u043f\u0440\u043e\u0441\u0442\u043e\u0457 \u0433\u0440\u0438 \u0432 \u0437\u043c\u0456\u0439\u043a\u0443 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u043e\u043c\u0443 \u0434\u043e\u0434\u0430\u0442\u043a\u0443 \u043d\u0430 C#:<\/p>\n<pre class=\"lang:default decode:true \">class Program\r\n{\r\n    public static async Task Main()\r\n    {\r\n        var tickRate = TimeSpan.FromMilliseconds(100);\r\n        var snakeGame = new SnakeGame();\r\n\r\n        using (var cts = new CancellationTokenSource())\r\n        {\r\n            async Task MonitorKeyPresses()\r\n            {\r\n                while (!cts.Token.IsCancellationRequested)\r\n                {\r\n                    if (Console.KeyAvailable)\r\n                    {\r\n                        var key = Console.ReadKey(intercept: true).Key;\r\n                        snakeGame.OnKeyPress(key);\r\n                    }\r\n\r\n                    await Task.Delay(10);\r\n                }\r\n            }\r\n\r\n            var monitorKeyPresses = MonitorKeyPresses();\r\n\r\n            do\r\n            {\r\n                snakeGame.OnGameTick();\r\n                snakeGame.Render();\r\n                await Task.Delay(tickRate);\r\n            } while (!snakeGame.GameOver);\r\n\r\n            \/\/ Allow time for user to weep before application exits.\r\n            for (var i = 0; i &lt; 3; i++)\r\n            {\r\n                Console.Clear();\r\n                await Task.Delay(500);\r\n                snakeGame.Render();\r\n                await Task.Delay(500);\r\n            }\r\n\r\n            cts.Cancel();\r\n            await monitorKeyPresses;\r\n        }\r\n    }\r\n}\r\n\r\nenum Direction\r\n{\r\n    Up,\r\n    Down,\r\n    Left,\r\n    Right\r\n}\r\n\r\ninterface IRenderable\r\n{\r\n    void Render();\r\n}\r\n\r\nreadonly struct Position\r\n{\r\n    public Position(int top, int left)\r\n    {\r\n        Top = top;\r\n        Left = left;\r\n    }\r\n    public int Top { get; }\r\n    public int Left { get; }\r\n\r\n    public Position RightBy(int n) =&gt; new Position(Top, Left + n);\r\n    public Position DownBy(int n) =&gt; new Position(Top + n, Left);\r\n}\r\n\r\nclass Apple : IRenderable\r\n{\r\n    public Apple(Position position)\r\n    {\r\n        Position = position;\r\n    }\r\n\r\n    public Position Position { get; }\r\n\r\n    public void Render()\r\n    {\r\n        Console.SetCursorPosition(Position.Left, Position.Top);\r\n        Console.ForegroundColor = ConsoleColor.Red;\r\n        Console.Write(\"\u25a0\");\r\n        Console.ResetColor();\r\n    }\r\n}\r\n\r\nclass Snake : IRenderable\r\n{\r\n    private List&lt;Position&gt; _body;\r\n    private int _growthSpurtsRemaining;\r\n\r\n    public Snake(Position spawnLocation, int initialSize = 1)\r\n    {\r\n        _body = new List&lt;Position&gt; { spawnLocation };\r\n        _growthSpurtsRemaining = Math.Max(0, initialSize - 1);\r\n        Dead = false;\r\n    }\r\n\r\n    public bool Dead { get; private set; }\r\n    public Position Head =&gt; _body.First();\r\n    private IEnumerable&lt;Position&gt; Body =&gt; _body.Skip(1);\r\n\r\n    public void Move(Direction direction)\r\n    {\r\n        if (Dead) throw new InvalidOperationException();\r\n\r\n        Position newHead;\r\n\r\n        switch (direction)\r\n        {\r\n            case Direction.Up:\r\n                newHead = Head.DownBy(-1);\r\n                break;\r\n\r\n            case Direction.Left:\r\n                newHead = Head.RightBy(-1);\r\n                break;\r\n\r\n            case Direction.Down:\r\n                newHead = Head.DownBy(1);\r\n                break;\r\n\r\n            case Direction.Right:\r\n                newHead = Head.RightBy(1);\r\n                break;\r\n\r\n            default:\r\n                throw new ArgumentOutOfRangeException();\r\n        }\r\n\r\n        if (_body.Contains(newHead) || !PositionIsValid(newHead))\r\n        {\r\n            Dead = true;\r\n            return;\r\n        }\r\n\r\n        _body.Insert(0, newHead);\r\n\r\n        if (_growthSpurtsRemaining &gt; 0)\r\n        {\r\n            _growthSpurtsRemaining--;\r\n        }\r\n        else\r\n        {\r\n            _body.RemoveAt(_body.Count - 1);\r\n        }\r\n    }\r\n\r\n    public void Grow()\r\n    {\r\n        if (Dead) throw new InvalidOperationException();\r\n\r\n        _growthSpurtsRemaining++;\r\n    }\r\n\r\n    public void Render()\r\n    {\r\n        Console.SetCursorPosition(Head.Left, Head.Top);\r\n\r\n        foreach (var position in Body)\r\n        {\r\n            Console.SetCursorPosition(position.Left, position.Top);\r\n            Console.Write(\"\u25a0\");\r\n        }\r\n    }\r\n\r\n    private static bool PositionIsValid(Position position) =&gt;\r\n        position.Top &gt;= 0 &amp;&amp; position.Left &gt;= 0;\r\n}\r\n\r\nclass SnakeGame : IRenderable\r\n{\r\n    private static readonly Position Origin = new Position(0, 0);\r\n\r\n    private Direction _currentDirection;\r\n    private Direction _nextDirection;\r\n    private Snake _snake;\r\n    private Apple _apple;\r\n\r\n    public SnakeGame()\r\n    {\r\n        _snake = new Snake(Origin, initialSize: 5);\r\n        _apple = CreateApple();\r\n        _currentDirection = Direction.Right;\r\n        _nextDirection = Direction.Right;\r\n    }\r\n\r\n    public bool GameOver =&gt; _snake.Dead;\r\n\r\n    public void OnKeyPress(ConsoleKey key)\r\n    {\r\n        Direction newDirection;\r\n\r\n        switch (key)\r\n        {\r\n            case ConsoleKey.UpArrow:\r\n                newDirection = Direction.Up;\r\n                break;\r\n\r\n            case ConsoleKey.LeftArrow:\r\n                newDirection = Direction.Left;\r\n                break;\r\n\r\n            case ConsoleKey.DownArrow:\r\n                newDirection = Direction.Down;\r\n                break;\r\n\r\n            case ConsoleKey.RightArrow:\r\n                newDirection = Direction.Right;\r\n                break;\r\n\r\n            default:\r\n                return;\r\n        }\r\n\r\n        \/\/ Snake cannot turn 180 degrees.\r\n        if (newDirection == OppositeDirectionTo(_currentDirection))\r\n        {\r\n            return;\r\n        }\r\n\r\n        _nextDirection = newDirection;\r\n    }\r\n\r\n    public void OnGameTick()\r\n    {\r\n        if (GameOver) throw new InvalidOperationException();\r\n\r\n        _currentDirection = _nextDirection;\r\n        _snake.Move(_currentDirection);\r\n\r\n        \/\/ If the snake's head moves to the same position as an apple, the snake\r\n        \/\/ eats it.\r\n        if (_snake.Head.Equals(_apple.Position))\r\n        {\r\n            _snake.Grow();\r\n            _apple = CreateApple();\r\n        }\r\n    }\r\n\r\n    public void Render()\r\n    {\r\n        Console.Clear();\r\n        _snake.Render();\r\n        _apple.Render();\r\n        Console.SetCursorPosition(0, 0);\r\n    }\r\n\r\n    private static Direction OppositeDirectionTo(Direction direction)\r\n    {\r\n        switch (direction)\r\n        {\r\n            case Direction.Up: return Direction.Down;\r\n            case Direction.Left: return Direction.Right;\r\n            case Direction.Right: return Direction.Left;\r\n            case Direction.Down: return Direction.Up;\r\n            default: throw new ArgumentOutOfRangeException();\r\n        }\r\n    }\r\n\r\n    private static Apple CreateApple()\r\n    {\r\n        \/\/ Can be factored elsewhere.\r\n        const int numberOfRows = 20;\r\n        const int numberOfColumns = 20;\r\n\r\n        var random = new Random();\r\n        var top = random.Next(0, numberOfRows + 1);\r\n        var left = random.Next(0, numberOfColumns + 1);\r\n        var position = new Position(top, left);\r\n        var apple = new Apple(position);\r\n\r\n        return apple;\r\n    }\r\n}<\/pre>\n<p>\u041f\u0440\u0438 \u0441\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u0456 \u0434\u043e\u0434\u0430\u0442\u043a\u0430, \u0432\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u043a\u0435\u0440\u0443\u0432\u0430\u0442\u0438\u0441\u044f \u0442\u0430\u043a\u0438\u043c\u0438 \u043a\u0440\u043e\u043a\u0430\u043c\u0438:<\/p>\n<ul>\n<li>\u0412\u0438\u0437\u043d\u0430\u0447\u0442\u0435 \u0456\u0433\u0440\u043e\u0432\u0435 \u043f\u043e\u043b\u0435: \u0421\u0442\u0432\u043e\u0440\u0456\u0442\u044c \u0434\u0432\u043e\u0432\u0438\u043c\u0456\u0440\u043d\u0438\u0439 \u043c\u0430\u0441\u0438\u0432 \u0434\u043b\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044f \u0456\u0433\u0440\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u043b\u044f. \u041a\u043e\u0436\u0435\u043d \u0435\u043b\u0435\u043c\u0435\u043d\u0442 \u043c\u0430\u0441\u0438\u0432\u0443 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u0438\u043c\u0435 \u043c\u0456\u0441\u0446\u0435 \u043d\u0430 \u0434\u043e\u0448\u0446\u0456 \u0456 \u043c\u043e\u0436\u0435 \u0431\u0443\u0442\u0438 \u043f\u0440\u043e\u0441\u0442\u043e\u0440\u043e\u043c, \u0441\u0442\u0456\u043d\u043e\u044e \u0430\u0431\u043e \u0448\u043c\u0430\u0442\u043a\u043e\u043c \u0457\u0436\u0456.<\/li>\n<li>\u0412\u0438\u0437\u043d\u0430\u0447\u0442\u0435 \u0437\u043c\u0456\u044e: \u0421\u0442\u0432\u043e\u0440\u0456\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0430\u0431\u043e \u043c\u0430\u0441\u0438\u0432 \u0434\u043b\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044f \u0437\u043c\u0456\u0457. \u041a\u043e\u0436\u0435\u043d \u0435\u043b\u0435\u043c\u0435\u043d\u0442 \u043c\u0430\u0441\u0438\u0432\u0443 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u0438\u043c\u0435 \u0441\u0435\u0433\u043c\u0435\u043d\u0442 \u0442\u0456\u043b\u0430 \u0437\u043c\u0456\u0457 \u0456 \u043c\u0430\u0442\u0438\u043c\u0435 \u043f\u043e\u0437\u0438\u0446\u0456\u044e (\u0440\u044f\u0434\u043e\u043a \u0456 \u0441\u0442\u043e\u0432\u043f\u0435\u0446\u044c) \u043d\u0430 \u0456\u0433\u0440\u043e\u0432\u0456\u0439 \u0434\u043e\u0448\u0446\u0456.<\/li>\n<li>\u0412\u0438\u0437\u043d\u0430\u0447\u0442\u0435 \u0446\u0438\u043a\u043b \u0433\u0440\u0438: \u0412\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0439\u0442\u0435 \u0446\u0438\u043a\u043b while \u0434\u043b\u044f \u0431\u0430\u0433\u0430\u0442\u043e\u0440\u0430\u0437\u043e\u0432\u043e\u0433\u043e \u043e\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044f \u0441\u0442\u0430\u043d\u0443 \u0433\u0440\u0438 \u0442\u0430 \u0432\u0456\u0434\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f \u0456\u0433\u0440\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u043b\u044f.<\/li>\n<li>\u041f\u0435\u0440\u0435\u043c\u0456\u0441\u0442\u0456\u0442\u044c \u0437\u043c\u0456\u044e: \u041e\u043d\u043e\u0432\u043b\u044e\u0439\u0442\u0435 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043d\u044f \u0433\u043e\u043b\u043e\u0432\u0438 \u0437\u043c\u0456\u0457 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0456 \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0446\u044c\u043a\u043e\u0433\u043e \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u044f (\u043d\u0430\u043f\u0440\u0438\u043a\u043b\u0430\u0434, \u043a\u043b\u0430\u0432\u0456\u0448\u0456 \u0437\u0456 \u0441\u0442\u0440\u0456\u043b\u043a\u0430\u043c\u0438) \u0456 \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u043d\u043e \u043f\u0435\u0440\u0435\u043c\u0456\u0449\u0430\u0439\u0442\u0435 \u0456\u043d\u0448\u0456 \u0447\u0430\u0441\u0442\u0438\u043d\u0438 \u0442\u0456\u043b\u0430 \u0437\u043c\u0456\u0457.<\/li>\n<li>\u041f\u0435\u0440\u0435\u0432\u0456\u0440\u0442\u0435 \u043d\u0430\u044f\u0432\u043d\u0456\u0441\u0442\u044c \u0437\u0456\u0442\u043a\u043d\u0435\u043d\u044c: \u041f\u0435\u0440\u0435\u0432\u0456\u0440\u0442\u0435, \u0447\u0438 \u043d\u0435 \u0437\u0456\u0442\u043a\u043d\u0443\u043b\u0430\u0441\u044f \u0433\u043e\u043b\u043e\u0432\u0430 \u0437\u043c\u0456\u0457 \u0437\u0456 \u0441\u0442\u0456\u043d\u043e\u044e \u0430\u0431\u043e \u0448\u043c\u0430\u0442\u043e\u0447\u043a\u043e\u043c \u0457\u0436\u0456.<\/li>\n<li>\u041e\u043d\u043e\u0432\u0438\u0442\u0438 \u0456\u0433\u0440\u043e\u0432\u0435 \u043f\u043e\u043b\u0435: \u041e\u043d\u043e\u0432\u0456\u0442\u044c \u0456\u0433\u0440\u043e\u0432\u0435 \u043f\u043e\u043b\u0435, \u0449\u043e\u0431 \u0432\u0456\u0434\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u0438 \u043f\u043e\u0442\u043e\u0447\u043d\u0438\u0439 \u0441\u0442\u0430\u043d \u0433\u0440\u0438 (\u043d\u0430\u043f\u0440\u0438\u043a\u043b\u0430\u0434, \u0434\u043e\u0434\u0430\u0439\u0442\u0435 \u043d\u043e\u0432\u0438\u0439 \u0448\u043c\u0430\u0442\u043e\u043a \u0457\u0436\u0456, \u043f\u0440\u0438\u0431\u0435\u0440\u0456\u0442\u044c \u0445\u0432\u0456\u0441\u0442 \u0437\u043c\u0456\u0457, \u044f\u043a\u0449\u043e \u0432\u043e\u043d\u0430 \u043d\u0435 \u0437&#8217;\u0457\u043b\u0430 \u0448\u043c\u0430\u0442\u043e\u043a \u0457\u0436\u0456).<\/li>\n<li>\u0412\u0456\u0434\u043e\u0431\u0440\u0430\u0437\u0456\u0442\u044c \u0434\u043e\u0448\u043a\u0443: \u0412\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0439\u0442\u0435 Console.WriteLine() \u0434\u043b\u044f \u0432\u0456\u0434\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f \u0456\u0433\u0440\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u043b\u044f \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0456.<\/li>\n<\/ul>\n<p>\u042f \u0441\u043f\u043e\u0434\u0456\u0432\u0430\u044e\u0441\u044f, \u0449\u043e \u0432\u0430\u043c \u0441\u043f\u043e\u0434\u043e\u0431\u0430\u043b\u043e\u0441\u044f \u0447\u0438\u0442\u0430\u0442\u0438 \u0446\u044e \u0441\u0442\u0430\u0442\u0442\u044e, \u0456 \u0432\u043e\u043d\u0430 \u0432\u0438\u044f\u0432\u0438\u043b\u0430\u0441\u044f \u043b\u0435\u0433\u043a\u043e\u044e \u0434\u043b\u044f \u0440\u043e\u0437\u0443\u043c\u0456\u043d\u043d\u044f. \u0411\u0443\u0434\u044c \u043b\u0430\u0441\u043a\u0430, \u0434\u0430\u0439\u0442\u0435 \u043c\u0435\u043d\u0456 \u0437\u043d\u0430\u0442\u0438, \u044f\u043a\u0449\u043e \u0443 \u0432\u0430\u0441 \u0454 \u044f\u043a\u0456\u0441\u044c \u043a\u043e\u043c\u0435\u043d\u0442\u0430\u0440\u0456 \u0430\u0431\u043e \u0432\u0438\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u044f.<\/p>\n<p>\u0422\u0430\u043a \u0441\u0430\u043c\u043e \u0432\u0430\u043c \u043c\u043e\u0436\u0435 \u0431\u0443\u0442\u0438 \u0446\u0456\u043a\u0430\u0432\u0430 \u043f\u043e\u043f\u0435\u0440\u0435\u0434\u043d\u044f \u0441\u0442\u0430\u0442\u0442\u044f &#8211; <a href=\"https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-krugluyu-knopku-c\/\">\u042f\u043a \u0437\u0440\u043e\u0431\u0438\u0442\u0438 \u043a\u0440\u0443\u0433\u043b\u0443 \u043a\u043d\u043e\u043f\u043a\u0443 \u0432 WPF \u0430\u0431\u043e Window Forms \u0434\u043e\u0434\u0430\u0442\u043a\u0430\u0445<\/a>.<\/p>\n<hr \/>\n<h4><strong>\u0412\u0438 \u0445\u043e\u0447\u0435\u0442\u0435 \u043d\u0430\u0432\u0447\u0438\u0442\u0438\u0441\u044f \u043f\u0438\u0441\u0430\u0442\u0438 \u043a\u043e\u0434 \u043c\u043e\u0432\u043e\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u0443\u0432\u0430\u043d\u043d\u044f C#?<\/strong><\/h4>\n<p>\u0421\u0442\u0432\u043e\u0440\u044e\u0432\u0430\u0442\u0438 \u0440\u0456\u0437\u043d\u0456 \u0456\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0456\u0439\u043d\u0456 \u0441\u0438\u0441\u0442\u0435\u043c\u0438, \u0449\u043e \u0441\u043a\u043b\u0430\u0434\u0430\u044e\u0442\u044c\u0441\u044f \u0437 \u0441\u0430\u0439\u0442\u0456\u0432, \u043c\u043e\u0431\u0456\u043b\u044c\u043d\u0438\u0445 \u043a\u043b\u0456\u0454\u043d\u0442\u0456\u0432, \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u043d\u0438\u0445 \u0434\u043e\u0434\u0430\u0442\u043a\u0456\u0432, \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c-\u0431\u043e\u0442\u0456\u0432 \u0442\u043e\u0449\u043e.<\/p>\n<p><a href=\"https:\/\/dijix.com.ua\/\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-94 size-full\" src=\"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/logog-brand.png\" alt=\"\" width=\"355\" height=\"77\" srcset=\"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/logog-brand.png 355w, https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/logog-brand-300x65.png 300w\" sizes=\"auto, (max-width: 355px) 100vw, 355px\" \/><\/a><\/p>\n<p>\u041f\u0435\u0440\u0435\u0445\u043e\u0434\u044c\u0442\u0435 \u0434\u043e \u043d\u0430\u0441 \u043d\u0430 \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443 Dijix \u0456 \u043e\u0437\u043d\u0430\u0439\u043e\u043c\u0442\u0435\u0441\u044f \u0437 \u0443\u043c\u043e\u0432\u0430\u043c\u0438 \u043d\u0430\u0432\u0447\u0430\u043d\u043d\u044f, \u043c\u0438 \u0441\u043f\u0435\u0446\u0456\u0430\u043b\u0456\u0437\u0443\u0454\u043c\u043e\u0441\u044f \u0442\u0456\u043b\u044c\u043a\u0438 \u043d\u0430 \u0456\u043d\u0434\u0438\u0432\u0456\u0434\u0443\u0430\u043b\u044c\u043d\u0438\u0445 \u0437\u0430\u043d\u044f\u0442\u0442\u044f\u0445, \u044f\u043a \u0434\u043b\u044f \u043f\u043e\u0447\u0430\u0442\u043a\u0456\u0432\u0446\u0456\u0432, \u0442\u0430\u043a \u0456 \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u0443\u043d\u0443\u0442\u0438\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u0456\u0441\u0442\u0456\u0432. \u0412\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0437\u044f\u0442\u0438 \u044f\u043a \u043e\u0434\u043d\u0435 \u0437\u0430\u043d\u044f\u0442\u0442\u044f \u0434\u043b\u044f \u043e\u043f\u0440\u0430\u0446\u044e\u0432\u0430\u043d\u043d\u044f \u043f\u0438\u0442\u0430\u043d\u043d\u044f, \u0449\u043e \u0432\u0430\u0441 \u0446\u0456\u043a\u0430\u0432\u0438\u0442\u044c, \u0442\u0430\u043a \u0456 \u043a\u0456\u043b\u044c\u043a\u0430, \u0434\u043b\u044f \u0431\u0456\u043b\u044c\u0448 \u0449\u0456\u043b\u044c\u043d\u043e\u0457 \u0440\u043e\u0431\u043e\u0442\u0438. \u0417\u0430\u0432\u0434\u044f\u043a\u0438 \u043e\u0441\u043e\u0431\u0438\u0441\u0442\u043e\u043c\u0443 \u043a\u0430\u0431\u0456\u043d\u0435\u0442\u0443, \u043a\u043e\u0436\u0435\u043d \u0441\u0442\u0443\u0434\u0435\u043d\u0442 \u043f\u0456\u0434\u0432\u0438\u0449\u0438\u0442\u044c \u044f\u043a\u0456\u0441\u0442\u044c \u0441\u0432\u043e\u0433\u043e \u043d\u0430\u0432\u0447\u0430\u043d\u043d\u044f, \u0443 \u0432\u0430\u0448\u043e\u043c\u0443 \u0440\u043e\u0437\u043f\u043e\u0440\u044f\u0434\u0436\u0435\u043d\u043d\u0456:<\/p>\n<ul>\n<li>\u0414\u043e\u0441\u0442\u0443\u043f \u0434\u043e \u043f\u0440\u043e\u0439\u0434\u0435\u043d\u043e\u0433\u043e \u043c\u0430\u0442\u0435\u0440\u0456\u0430\u043b\u0443<\/li>\n<li>\u0422\u0435\u043c\u0430\u0442\u0438\u0447\u043d\u0456 \u0441\u0442\u0430\u0442\u0442\u0456<\/li>\n<li>\u0411\u0456\u0431\u043b\u0456\u043e\u0442\u0435\u043a\u0430 \u043a\u043d\u0438\u0433<\/li>\n<li>\u041e\u043d\u043b\u0430\u0439\u043d \u0442\u0435\u0441\u0442\u0443\u0432\u0430\u043d\u043d\u044f<\/li>\n<li>\u0421\u043f\u0456\u043b\u043a\u0443\u0432\u0430\u043d\u043d\u044f \u0432 \u0437\u0430\u043a\u0440\u0438\u0442\u0438\u0445 \u0433\u0440\u0443\u043f\u0430\u0445<\/li>\n<\/ul>\n<blockquote>\n<p style=\"text-align: right;\"><a href=\"https:\/\/dijix.com.ua\/uk\/\">https:\/\/dijix.com.ua<\/a><\/p>\n<p style=\"text-align: right;\"><a href=\"https:\/\/ms.dijix.com.ua\/\">\u0416\u0438\u0432\u0438 \u0443 \u0441\u0432\u043e\u0454\u043c\u0443 \u0441\u0432\u0456\u0442\u0456, \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u0443\u0439 \u0443 \u043d\u0430\u0448\u043e\u043c\u0443<\/a>.<\/p>\n<\/blockquote>\n<hr \/>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0423 \u0446\u0456\u0439 \u0441\u0442\u0430\u0442\u0442\u0456 \u043c\u0438 \u0440\u043e\u0437\u0433\u043b\u044f\u043d\u0435\u043c\u043e \u044f\u043a \u0441\u0442\u0432\u043e\u0440\u0438\u0442\u0438 \u0433\u0440\u0443 \u0432 \u0437\u043c\u0456\u0439\u043a\u0443 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u043e\u043c\u0443 \u0434\u043e\u0434\u0430\u0442\u043a\u0443 \u043d\u0430 C#, \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u044e\u0447\u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u0456 \u043c\u0435\u0445\u0430\u043d\u0456\u043a\u0438. \u0417\u043c\u0456\u0439\u043a\u0430 &#8211; \u0446\u0435 \u043a\u043b\u0430\u0441\u0438\u0447\u043d\u0430 \u0430\u0440\u043a\u0430\u0434\u043d\u0430 \u0433\u0440\u0430,&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-zmejku-na-c\/\">Continue reading<span class=\"screen-reader-text\">\u042f\u043a \u0437\u0440\u043e\u0431\u0438\u0442\u0438 \u0437\u043c\u0456\u0439\u043a\u0443 [C#]<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":784,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"uk","_original_post":"https:\/\/dijix.com.ua\/blog\/?p=783","footnotes":""},"categories":[12],"tags":[],"class_list":["post-787","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-kak-sdelat-na-c","uk","entry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.13 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\r\n<title>\u042f\u043a \u0437\u0440\u043e\u0431\u0438\u0442\u0438 \u0437\u043c\u0456\u0439\u043a\u0443 [C#] - Dijix - \u0411\u043b\u043e\u0433<\/title>\r\n<meta name=\"description\" content=\"\u0423 \u0446\u0456\u0439 \u0441\u0442\u0430\u0442\u0442\u0456 \u043c\u0438 \u0440\u043e\u0437\u0433\u043b\u044f\u043d\u0435\u043c\u043e \u044f\u043a \u0441\u0442\u0432\u043e\u0440\u0438\u0442\u0438 \u0433\u0440\u0443 \u0432 \u0437\u043c\u0456\u0439\u043a\u0443 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u043e\u043c\u0443 \u0434\u043e\u0434\u0430\u0442\u043a\u0443 \u043d\u0430 C#, \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u044e\u0447\u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u0456 \u043c\u0435\u0445\u0430\u043d\u0456\u043a\u0438.\" \/>\r\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\r\n<link rel=\"canonical\" href=\"https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-zmejku-na-c\/\" \/>\r\n<meta property=\"og:locale\" content=\"uk_UA\" \/>\r\n<meta property=\"og:type\" content=\"article\" \/>\r\n<meta property=\"og:title\" content=\"\u042f\u043a \u0437\u0440\u043e\u0431\u0438\u0442\u0438 \u0437\u043c\u0456\u0439\u043a\u0443 [C#] - Dijix - \u0411\u043b\u043e\u0433\" \/>\r\n<meta property=\"og:url\" content=\"https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-zmejku-na-c\/\" \/>\r\n<meta property=\"og:site_name\" content=\"Dijix - \u0411\u043b\u043e\u0433\" \/>\r\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Dijixs\" \/>\r\n<meta property=\"article:published_time\" content=\"2023-03-11T11:33:37+00:00\" \/>\r\n<meta property=\"og:image\" content=\"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2023\/03\/126853864-3dcd76c4-e577-443a-b1bc-a191031f1a18-min.png\" \/>\r\n\t<meta property=\"og:image:width\" content=\"1824\" \/>\r\n\t<meta property=\"og:image:height\" content=\"1424\" \/>\r\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\r\n<meta name=\"author\" content=\"\u041b\u0435\u043e\u043d\u0438\u0434 \u041a\u0430\u0440\u0443\u043d\u0430\" \/>\r\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\r\n<meta name=\"twitter:label1\" content=\"\u041d\u0430\u043f\u0438\u0441\u0430\u043d\u043e\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u041b\u0435\u043e\u043d\u0438\u0434 \u041a\u0430\u0440\u0443\u043d\u0430\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u041f\u0440\u0438\u0431\u043b. \u0447\u0430\u0441 \u0447\u0438\u0442\u0430\u043d\u043d\u044f\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 \u0445\u0432\u0438\u043b\u0438\u043d\" \/>\r\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-zmejku-na-c\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-zmejku-na-c\/\"},\"author\":{\"name\":\"\u041b\u0435\u043e\u043d\u0438\u0434 \u041a\u0430\u0440\u0443\u043d\u0430\",\"@id\":\"https:\/\/dijix.com.ua\/blog\/#\/schema\/person\/4ce2240cdf3db189e17ca0ff422a0c3d\"},\"headline\":\"\u042f\u043a \u0437\u0440\u043e\u0431\u0438\u0442\u0438 \u0437\u043c\u0456\u0439\u043a\u0443 [C#]\",\"datePublished\":\"2023-03-11T11:33:37+00:00\",\"dateModified\":\"2023-03-11T11:33:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-zmejku-na-c\/\"},\"wordCount\":433,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/dijix.com.ua\/blog\/#organization\"},\"articleSection\":[\"\u042f\u043a \u0437\u0440\u043e\u0431\u0438\u0442\u0438 \u043d\u0430 C#?\"],\"inLanguage\":\"uk\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-zmejku-na-c\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-zmejku-na-c\/\",\"url\":\"https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-zmejku-na-c\/\",\"name\":\"\u042f\u043a \u0437\u0440\u043e\u0431\u0438\u0442\u0438 \u0437\u043c\u0456\u0439\u043a\u0443 [C#] - Dijix - \u0411\u043b\u043e\u0433\",\"isPartOf\":{\"@id\":\"https:\/\/dijix.com.ua\/blog\/#website\"},\"datePublished\":\"2023-03-11T11:33:37+00:00\",\"dateModified\":\"2023-03-11T11:33:37+00:00\",\"description\":\"\u0423 \u0446\u0456\u0439 \u0441\u0442\u0430\u0442\u0442\u0456 \u043c\u0438 \u0440\u043e\u0437\u0433\u043b\u044f\u043d\u0435\u043c\u043e \u044f\u043a \u0441\u0442\u0432\u043e\u0440\u0438\u0442\u0438 \u0433\u0440\u0443 \u0432 \u0437\u043c\u0456\u0439\u043a\u0443 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u043e\u043c\u0443 \u0434\u043e\u0434\u0430\u0442\u043a\u0443 \u043d\u0430 C#, \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u044e\u0447\u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u0456 \u043c\u0435\u0445\u0430\u043d\u0456\u043a\u0438.\",\"breadcrumb\":{\"@id\":\"https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-zmejku-na-c\/#breadcrumb\"},\"inLanguage\":\"uk\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-zmejku-na-c\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-zmejku-na-c\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\",\"item\":\"https:\/\/dijix.com.ua\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u042f\u043a \u0437\u0440\u043e\u0431\u0438\u0442\u0438 \u0437\u043c\u0456\u0439\u043a\u0443 [C#]\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/dijix.com.ua\/blog\/#website\",\"url\":\"https:\/\/dijix.com.ua\/blog\/\",\"name\":\"Dijix - \u0411\u043b\u043e\u0433\",\"description\":\"\ud83d\udc9c\",\"publisher\":{\"@id\":\"https:\/\/dijix.com.ua\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/dijix.com.ua\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"uk\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/dijix.com.ua\/blog\/#organization\",\"name\":\"Dijix - \u0411\u043b\u043e\u0433\",\"url\":\"https:\/\/dijix.com.ua\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"uk\",\"@id\":\"https:\/\/dijix.com.ua\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/\u0421\u043d\u0438\u043c\u043e\u043a.png\",\"contentUrl\":\"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/\u0421\u043d\u0438\u043c\u043e\u043a.png\",\"width\":159,\"height\":92,\"caption\":\"Dijix - \u0411\u043b\u043e\u0433\"},\"image\":{\"@id\":\"https:\/\/dijix.com.ua\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/Dijixs\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/dijix.com.ua\/blog\/#\/schema\/person\/4ce2240cdf3db189e17ca0ff422a0c3d\",\"name\":\"\u041b\u0435\u043e\u043d\u0438\u0434 \u041a\u0430\u0440\u0443\u043d\u0430\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"uk\",\"@id\":\"https:\/\/dijix.com.ua\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e3e8fa72f5adf168d30934fb574a97a5e812e7d6e2795075f0e7ea19311e3ba9?s=96&d=monsterid&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e3e8fa72f5adf168d30934fb574a97a5e812e7d6e2795075f0e7ea19311e3ba9?s=96&d=monsterid&r=g\",\"caption\":\"\u041b\u0435\u043e\u043d\u0438\u0434 \u041a\u0430\u0440\u0443\u043d\u0430\"},\"sameAs\":[\"https:\/\/dijix.com.ua\/blog\"],\"url\":\"https:\/\/dijix.com.ua\/blog\/author\/admin\/\"}]}<\/script>\r\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u042f\u043a \u0437\u0440\u043e\u0431\u0438\u0442\u0438 \u0437\u043c\u0456\u0439\u043a\u0443 [C#] - Dijix - \u0411\u043b\u043e\u0433","description":"\u0423 \u0446\u0456\u0439 \u0441\u0442\u0430\u0442\u0442\u0456 \u043c\u0438 \u0440\u043e\u0437\u0433\u043b\u044f\u043d\u0435\u043c\u043e \u044f\u043a \u0441\u0442\u0432\u043e\u0440\u0438\u0442\u0438 \u0433\u0440\u0443 \u0432 \u0437\u043c\u0456\u0439\u043a\u0443 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u043e\u043c\u0443 \u0434\u043e\u0434\u0430\u0442\u043a\u0443 \u043d\u0430 C#, \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u044e\u0447\u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u0456 \u043c\u0435\u0445\u0430\u043d\u0456\u043a\u0438.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-zmejku-na-c\/","og_locale":"uk_UA","og_type":"article","og_title":"\u042f\u043a \u0437\u0440\u043e\u0431\u0438\u0442\u0438 \u0437\u043c\u0456\u0439\u043a\u0443 [C#] - Dijix - \u0411\u043b\u043e\u0433","og_url":"https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-zmejku-na-c\/","og_site_name":"Dijix - \u0411\u043b\u043e\u0433","article_publisher":"https:\/\/www.facebook.com\/Dijixs","article_published_time":"2023-03-11T11:33:37+00:00","og_image":[{"width":1824,"height":1424,"url":"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2023\/03\/126853864-3dcd76c4-e577-443a-b1bc-a191031f1a18-min.png","type":"image\/png"}],"author":"\u041b\u0435\u043e\u043d\u0438\u0434 \u041a\u0430\u0440\u0443\u043d\u0430","twitter_card":"summary_large_image","twitter_misc":{"\u041d\u0430\u043f\u0438\u0441\u0430\u043d\u043e":"\u041b\u0435\u043e\u043d\u0438\u0434 \u041a\u0430\u0440\u0443\u043d\u0430","\u041f\u0440\u0438\u0431\u043b. \u0447\u0430\u0441 \u0447\u0438\u0442\u0430\u043d\u043d\u044f":"6 \u0445\u0432\u0438\u043b\u0438\u043d"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-zmejku-na-c\/#article","isPartOf":{"@id":"https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-zmejku-na-c\/"},"author":{"name":"\u041b\u0435\u043e\u043d\u0438\u0434 \u041a\u0430\u0440\u0443\u043d\u0430","@id":"https:\/\/dijix.com.ua\/blog\/#\/schema\/person\/4ce2240cdf3db189e17ca0ff422a0c3d"},"headline":"\u042f\u043a \u0437\u0440\u043e\u0431\u0438\u0442\u0438 \u0437\u043c\u0456\u0439\u043a\u0443 [C#]","datePublished":"2023-03-11T11:33:37+00:00","dateModified":"2023-03-11T11:33:37+00:00","mainEntityOfPage":{"@id":"https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-zmejku-na-c\/"},"wordCount":433,"commentCount":0,"publisher":{"@id":"https:\/\/dijix.com.ua\/blog\/#organization"},"articleSection":["\u042f\u043a \u0437\u0440\u043e\u0431\u0438\u0442\u0438 \u043d\u0430 C#?"],"inLanguage":"uk","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-zmejku-na-c\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-zmejku-na-c\/","url":"https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-zmejku-na-c\/","name":"\u042f\u043a \u0437\u0440\u043e\u0431\u0438\u0442\u0438 \u0437\u043c\u0456\u0439\u043a\u0443 [C#] - Dijix - \u0411\u043b\u043e\u0433","isPartOf":{"@id":"https:\/\/dijix.com.ua\/blog\/#website"},"datePublished":"2023-03-11T11:33:37+00:00","dateModified":"2023-03-11T11:33:37+00:00","description":"\u0423 \u0446\u0456\u0439 \u0441\u0442\u0430\u0442\u0442\u0456 \u043c\u0438 \u0440\u043e\u0437\u0433\u043b\u044f\u043d\u0435\u043c\u043e \u044f\u043a \u0441\u0442\u0432\u043e\u0440\u0438\u0442\u0438 \u0433\u0440\u0443 \u0432 \u0437\u043c\u0456\u0439\u043a\u0443 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u043e\u043c\u0443 \u0434\u043e\u0434\u0430\u0442\u043a\u0443 \u043d\u0430 C#, \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u044e\u0447\u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u0456 \u043c\u0435\u0445\u0430\u043d\u0456\u043a\u0438.","breadcrumb":{"@id":"https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-zmejku-na-c\/#breadcrumb"},"inLanguage":"uk","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-zmejku-na-c\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/dijix.com.ua\/blog\/uk\/kak-sdelat-zmejku-na-c\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430","item":"https:\/\/dijix.com.ua\/blog\/"},{"@type":"ListItem","position":2,"name":"\u042f\u043a \u0437\u0440\u043e\u0431\u0438\u0442\u0438 \u0437\u043c\u0456\u0439\u043a\u0443 [C#]"}]},{"@type":"WebSite","@id":"https:\/\/dijix.com.ua\/blog\/#website","url":"https:\/\/dijix.com.ua\/blog\/","name":"Dijix - \u0411\u043b\u043e\u0433","description":"\ud83d\udc9c","publisher":{"@id":"https:\/\/dijix.com.ua\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/dijix.com.ua\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"uk"},{"@type":"Organization","@id":"https:\/\/dijix.com.ua\/blog\/#organization","name":"Dijix - \u0411\u043b\u043e\u0433","url":"https:\/\/dijix.com.ua\/blog\/","logo":{"@type":"ImageObject","inLanguage":"uk","@id":"https:\/\/dijix.com.ua\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/\u0421\u043d\u0438\u043c\u043e\u043a.png","contentUrl":"https:\/\/dijix.com.ua\/blog\/wp-content\/uploads\/2022\/08\/\u0421\u043d\u0438\u043c\u043e\u043a.png","width":159,"height":92,"caption":"Dijix - \u0411\u043b\u043e\u0433"},"image":{"@id":"https:\/\/dijix.com.ua\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Dijixs"]},{"@type":"Person","@id":"https:\/\/dijix.com.ua\/blog\/#\/schema\/person\/4ce2240cdf3db189e17ca0ff422a0c3d","name":"\u041b\u0435\u043e\u043d\u0438\u0434 \u041a\u0430\u0440\u0443\u043d\u0430","image":{"@type":"ImageObject","inLanguage":"uk","@id":"https:\/\/dijix.com.ua\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e3e8fa72f5adf168d30934fb574a97a5e812e7d6e2795075f0e7ea19311e3ba9?s=96&d=monsterid&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e3e8fa72f5adf168d30934fb574a97a5e812e7d6e2795075f0e7ea19311e3ba9?s=96&d=monsterid&r=g","caption":"\u041b\u0435\u043e\u043d\u0438\u0434 \u041a\u0430\u0440\u0443\u043d\u0430"},"sameAs":["https:\/\/dijix.com.ua\/blog"],"url":"https:\/\/dijix.com.ua\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/dijix.com.ua\/blog\/wp-json\/wp\/v2\/posts\/787","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dijix.com.ua\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dijix.com.ua\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dijix.com.ua\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dijix.com.ua\/blog\/wp-json\/wp\/v2\/comments?post=787"}],"version-history":[{"count":1,"href":"https:\/\/dijix.com.ua\/blog\/wp-json\/wp\/v2\/posts\/787\/revisions"}],"predecessor-version":[{"id":788,"href":"https:\/\/dijix.com.ua\/blog\/wp-json\/wp\/v2\/posts\/787\/revisions\/788"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dijix.com.ua\/blog\/wp-json\/wp\/v2\/media\/784"}],"wp:attachment":[{"href":"https:\/\/dijix.com.ua\/blog\/wp-json\/wp\/v2\/media?parent=787"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dijix.com.ua\/blog\/wp-json\/wp\/v2\/categories?post=787"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dijix.com.ua\/blog\/wp-json\/wp\/v2\/tags?post=787"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}