{"id":21001,"date":"2023-12-22T06:30:00","date_gmt":"2023-12-21T21:30:00","guid":{"rendered":"https:\/\/itport.cloud\/?p=21001"},"modified":"2023-12-22T21:51:53","modified_gmt":"2023-12-22T12:51:53","slug":"post-21001","status":"publish","type":"post","link":"https:\/\/itport.cloud\/?p=21001","title":{"rendered":"C# \u30c8\u30e9\u30f3\u30d7 High&#038;Low\u3092\u4f5c\u3063\u3066\u307f\u305f\uff08\u7b2c1\u56de\uff09"},"content":{"rendered":"\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\n<h2 class=\"wp-block-heading\" id=\"e79baee6aca1-1\">\u76ee\u6b21<\/h2>\n<\/div>\n<\/div>\n\n\n\n<p><a href=\"#First\">\u306f\u3058\u3081\u306b<\/a><br><a href=\"#Model\">Model\u306e\u4f5c\u6210<\/a><br><a href=\"#Controller\" data-type=\"internal\" data-id=\"#Controller\">Controller\u306e\u4f5c\u6210<\/a><br><a href=\"#View\">View\u306e\u4f5c\u6210<\/a><br><a href=\"#Finish\">\u304a\u308f\u308a\u306b<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"First\">\u306f\u3058\u3081\u306b<\/h2>\n\n\n\n<p>C#\u3092\u5b66\u3073\u59cb\u3081\u30661\u5e74\u8db3\u3089\u305a\u306e\u79c1\u304c\u4eca\u56de\u306fC#\u3067\u30c8\u30e9\u30f3\u30d7\u30b2\u30fc\u30e0\u306eHigh&amp;Low\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002<br>\u30b2\u30fc\u30e0\u5185\u5bb9\u306f\u30d7\u30ec\u30a4\u30e4\u30fc\u3068\u76f8\u624b\u304c\uff11\uff5e\uff11\uff13\u306e\u30ab\u30fc\u30c9\u3092\u624b\u672d\u3068\u3057\u3001\u540c\u6642\u306b\u51fa\u3057\u305f\u30ab\u30fc\u30c9\u306e<br>\u5927\u304d\u3044\u65b9\u304c\u52dd\u5229\u3068\u306a\u308a\u3001\u52dd\u5229\u6761\u4ef6\u306b\u9054\u3059\u308b\u307e\u3067\u7e70\u308a\u8fd4\u3057\u884c\u3044\u3001\u6700\u7d42\u7684\u306a\u52dd\u8005\u3092\u6c7a\u5b9a\u3057\u307e\u3059\u3002<br>High\uff06Low\u3068\u3044\u3046\u3088\u308a\u3082\u6226\u4e89\u3068\u3044\u3046\u30c8\u30e9\u30f3\u30d7\u30b2\u30fc\u30e0\u306b\u8fd1\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<br>\u4eca\u56de\u306f\u30d7\u30ec\u30a4\u30e4\u30fc\u306e\u624b\u672d\u3092\u753b\u9762\u4e0a\u306b\u8868\u793a\u3055\u305b\u308b\u307e\u3067\u3092\u76ee\u6a19\u3068\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Model\">Model\u306e\u4f5c\u6210<\/h2>\n\n\n\n<p>\u6700\u521d\u306bModel\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br>\u4eca\u56de\u306f2\u3064\u306eModel\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br>1\u3064\u76ee\u306f\u3001\u30c8\u30e9\u30f3\u30d7\u306e\u30ab\u30fc\u30c9\u60c5\u5831\u3092\u7ba1\u7406\u3057\u3001\u8868\u793a\u3059\u308b\u305f\u3081\u306e\u57fa\u76e4\u3068\u306a\u308b\u305f\u3081\u306eModel\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br>CardModel.cs\u3092\u4f5c\u6210\u3057\u3001\u4e0b\u8a18\u3092\u8a18\u8f09\u3057\u307e\u3059\u3002<br>\u203b\u30c8\u30e9\u30f3\u30d7\u306e\u753b\u50cf\u306fimage\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3057\u3001\u683c\u7d0d\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nnamespace HighAndLow.Models\n{\n    public class CardModel\n    {\n        public List&lt;CardInfo> Cards { get; set; }\n\n        public CardModel() \n        {\n            Cards = new List&lt;CardInfo>();\n\n            \/\/\u30c7\u30c3\u30ad\u306e\u521d\u671f\u5316\n            foreach (var suit in GetSuits())\n            {\n                for (int value = 1; value &lt;= 13; value++)\n                {\n                    Cards.Add(new CardInfo\n                    {\n                        Suit = suit,\n                        Value = value.ToString(),\n                        ImagePath = $\"..\/image\/{value}_{suit}.png\"\n                    });\n                }\n            }\n        }\n        public List&lt;string> GetSuits()\n        {\n            return new List&lt;string> { \"\u30cf\u30fc\u30c8\", \"\u30c0\u30a4\u30e4\", \"\u30b9\u30da\u30fc\u30c9\", \"\u30af\u30e9\u30d6\" };\n        }\n    }\n\n    public class CardInfo\n    {\n        \/\/\u30ab\u30fc\u30c9\u540d\n        public string Suit { get; set; }\n        \/\/\uff11\uff5e\uff11\uff13\u306e\u5024\n        public string Value { get; set; }\n        \/\/\u753b\u50cf\u30d1\u30b9\n        public string ImagePath { get; set; }\n    }\n}\n\n<\/pre><\/div>\n\n\n<p>CardModel\u30af\u30e9\u30b9\u306f\u30ab\u30fc\u30c9\u60c5\u5831\u3092\u683c\u7d0d\u3059\u308b\u305f\u3081\u306e\u30c7\u30fc\u30bf\u30e2\u30c7\u30eb\u3067\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\npublic List&lt;CardInfo> Cards { get; set; }\n<\/pre><\/div>\n\n\n<p>Cards\u30d7\u30ed\u30d1\u30c6\u30a3\u306fCardInfo\u30af\u30e9\u30b9\u306e\u30ea\u30b9\u30c8\u3067\u3001\u305d\u308c\u305e\u308c\u306e\u30ab\u30fc\u30c9\u306bSuit\u3001Value\u3001ImagePath\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<br>3\u3064\u306e\u5185\u5bb9\u306b\u3064\u3044\u3066\u306f\u4e0b\u8a18\u306eCardInfo\u30af\u30e9\u30b9\u306b\u8a18\u8f09\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\npublic class CardInfo\n{\n   \/\/\u30ab\u30fc\u30c9\u540d\n   public string Suit { get; set; }\n   \/\/\uff11\uff5e\uff11\uff13\u306e\u5024\n   public string Value { get; set; }\n   \/\/\u753b\u50cf\u30d1\u30b9\n   public string ImagePath { get; set; }\n}\n<\/pre><\/div>\n\n\n<p>CardInfo\u30af\u30e9\u30b9\u306f\u5358\u4e00\u306e\u30ab\u30fc\u30c9\u306e\u60c5\u5831\u3092\u8868\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u3053\u308c\u306b\u3088\u308a\u30b2\u30fc\u30e0\u5185\u3067\u306e\u8868\u793a\u304c\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\npublic List&lt;string> GetSuits()\n{\n     return new List&lt;string> { \"\u30cf\u30fc\u30c8\", \"\u30c0\u30a4\u30e4\", \"\u30b9\u30da\u30fc\u30c9\", \"\u30af\u30e9\u30d6\" };\n}\n<\/pre><\/div>\n\n\n<p>GetSuits\u30e1\u30bd\u30c3\u30c9\u306f\u30cf\u30fc\u30c8\u30fb\u30c0\u30a4\u30e4\u30fb\u30b9\u30da\u30fc\u30c9\u30fb\u30af\u30e9\u30d6\u3068\u3044\u3063\u305fSuit\u306e\u30ea\u30b9\u30c8\u3092\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n\/\/\u30c7\u30c3\u30ad\u306e\u521d\u671f\u5316\nforeach (var suit in GetSuits())\n{\n    for (int value = 1; value &lt;= 13; value++)\n    {\n        Cards.Add(new CardInfo\n    {\n        Suit = suit,\n        Value = value.ToString(),\n         ImagePath = $\"..\/image\/{value}_{suit}.png\"\n    });\n}\n<\/pre><\/div>\n\n\n<p>CardsModel\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3067\u3053\u306eSuit\u3092\u7d20\u306b\u3057\u3066\u5404\u30ab\u30fc\u30c9\u3092\u751f\u6210\u3057\u3001CardInfo\u30af\u30e9\u30b9\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068\u3057\u3066Cards\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u8ffd\u52a0\u3092\u884c\u3063\u3066\u3044\u307e\u3059\u3002<br><br>\u6b21\u306b2\u3064\u76ee\u306eModel\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br>\u30d7\u30ec\u30a4\u30e4\u30fc\u306e\u624b\u672d\u60c5\u5831\u3092\u6301\u3061\u3001View\u306b\u30c7\u30fc\u30bf\u3092\u6e21\u3059\u305f\u3081\u306bGameViewModel.cs\u3092\u4f5c\u6210\u3057\u4e0b\u8a18\u3092\u8a18\u8f09\u3057\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nnamespace HighAndLow.Models.ViewModels\n{\n    public class GameViewModel\n    {\n        \/\/\/ &lt;summary>\n        \/\/\/ \u30d7\u30ec\u30a4\u30e4\u30fc\u306e\u624b\u672d\n        \/\/\/ &lt;\/summary>\n        public List&lt;string> Player { get; set; }\n    }\n}\n<\/pre><\/div>\n\n\n<p>GameViewModel\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br>\u305d\u3053\u306bPlayer\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u8a18\u8f09\u3057\u3001\u30d7\u30ec\u30a4\u30e4\u30fc\u306e\u624b\u672d\u60c5\u5831\u3092\u6587\u5b57\u5217\u306e\u30ea\u30b9\u30c8\u3068\u3057\u3066\u4fdd\u6301\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<br>Player\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u683c\u7d0d\u65b9\u6cd5\u3068\u683c\u7d0d\u3059\u308b\u60c5\u5831\u306e\u4f5c\u6210\u306b\u3064\u3044\u3066\u306f\u6b21\u306eController\u3067\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Controller\">Controller\u306e\u4f5c\u6210<\/h2>\n\n\n\n<p>\u7d9a\u3044\u3066Controller\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br>GameController.cs\u3092\u4f5c\u6210\u3057\u3001\u4e0b\u8a18\u3092\u8a18\u8f09\u3057\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nnamespace HighAndLow.Controllers\n{\n    public class GameController : Controller\n    {\n\u3000\u3000\u3000\u3000&#x5B;HttpGet]\n        public IActionResult Start()\n        {\n           var cards = new CardModel();\n\u3000\u3000\u3000\u3000\u3000\u3000\/\/\u30e9\u30f3\u30c0\u30e0\u3067\u30d7\u30ec\u30a4\u30e4\u30fc\u306b\u914d\u308b\u3001\u30ab\u30fc\u30c9\u30bb\u30c3\u30c8\u3092\u6c7a\u3081\u308b\n           Random random = new Random();\n           int playerSuit = random.Next(0, 3);\n\u3000\u3000\u3000\u3000\u3000\u3000List&lt;string> suits = cards.GetSuits();\n           List&lt;string> playerCards = cards.Cards.Where(x => x.Suit == suits&#x5B;playerSuit]).Select(x => x.ImagePath).ToList();\n\u3000\u3000\u3000\u3000\u3000  var model = new GameViewModel\n           {\n               Player = playerCards,\n           };\n           return View(model);\n        }\n\u3000\u3000}\n}\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\npublic IActionResult Start()\n<\/pre><\/div>\n\n\n<p>GameController\u30af\u30e9\u30b9\u306bStart\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nvar cards = new CardModel();\n<\/pre><\/div>\n\n\n<p>\u6700\u521d\u306b\u5148\u307b\u3069\u4f5c\u6210\u3057\u305fCardModel\u30af\u30e9\u30b9\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3057\u3066\u3001\u305d\u306e\u4e2d\u3067\u30cf\u30fc\u30c8, \u30c0\u30a4\u30e4, \u30b9\u30da\u30fc\u30c9, \u30af\u30e9\u30d6\u306e\u305d\u308c\u305e\u308c13\u679a\u306e\u30ab\u30fc\u30c9\u30bb\u30c3\u30c8\u3092\u521d\u671f\u5316\u3057\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n\/\/\u30e9\u30f3\u30c0\u30e0\u3067\u30d7\u30ec\u30a4\u30e4\u30fc\u306b\u914d\u308b\u3001\u30ab\u30fc\u30c9\u30bb\u30c3\u30c8\u3092\u6c7a\u3081\u308b\nRandom random = new Random();\nint playerSuit = random.Next(0, 3);\nList&lt;string> suits = cards.GetSuits();\nList&lt;string> playerCards = cards.Cards.Where(x => x.Suit == suits&#x5B;playerSuit]).Select(x => x.ImagePath).ToList();\n<\/pre><\/div>\n\n\n<p>\u6b21\u306b\u30e9\u30f3\u30c0\u30e0\u3067\u30cf\u30fc\u30c8, \u30c0\u30a4\u30e4, \u30b9\u30da\u30fc\u30c9, \u30af\u30e9\u30d6\u306e\u3069\u308c\u304b1\u3064\u306e\u30ab\u30fc\u30c9\u30bb\u30c3\u30c8\u3092\u30d7\u30ec\u30a4\u30e4\u30fc\u306b\u632f\u308a\u5206\u3051\u307e\u3059\u3002<br>\u632f\u308a\u5206\u3051\u3089\u308c\u305f\u30ab\u30fc\u30c9\u30bb\u30c3\u30c8\u306e\u753b\u50cf\u30d1\u30b9\u3092\u53d6\u5f97\u3057\u3066\u304d\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nvar model = new GameViewModel\n{\n    Player = playerCards,\n};\nreturn View(model);\n<\/pre><\/div>\n\n\n<p>\u6700\u5f8c\u306b\u753b\u9762\u306b\u60c5\u5831\u3092\u6e21\u3059\u305f\u3081\u306bGameViewModel\u30af\u30e9\u30b9\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3057\u3001<br>\u30d7\u30ec\u30a4\u30e4\u30fc\u306e\u30c7\u30c3\u30ad\u753b\u50cf\u30d1\u30b9\u60c5\u5831\u3092\u30bb\u30c3\u30c8\u3057\u307e\u3059\u3002<br>\u30bb\u30c3\u30c8\u3057\u305fGameViewModel\u3092\u5bfe\u5fdc\u3059\u308bView\u306b\u6e21\u3059\u3053\u3068\u3067\u753b\u9762\u306b\u60c5\u5831\u3092\u6e21\u3059\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"View\">View\u306e\u4f5c\u6210<\/h2>\n\n\n\n<p>\u6700\u5f8c\u306b\u753b\u9762\u3092\u8868\u793a\u3059\u308b\u305f\u3081\u306eView\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br>Start.cshtml\u3092\u4f5c\u6210\u3057\u3001\u4e0b\u8a18\u3092\u8a18\u8f09\u3057\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n@using HighAndLow.Models.ViewModels;\n@model GameViewModel\n\n&lt;div class=\"player-possition\">\n    &lt;div class=\"card-possition\">\n        @foreach (var card in Model.Player)\n        {\n            var selectCard = $\"select-card-{card.GetHashCode()}\";\n            &lt;input id=\"@selectCard\" type=\"radio\" value=\"@card\" name=\"playerSelectCard\">\n            &lt;label for=\"@selectCard\">&lt;img class=\"player-card\" src=\"@card\" alt=\"Card Image\" \/>&lt;\/label>\n        }\n    &lt;\/div>\n&lt;\/div>\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n@using HighAndLow.Models.ViewModels;\n@model GameViewModel\n<\/pre><\/div>\n\n\n<p>\u6700\u521d\u306b\u300c@model GameViewModel\u300d\u3067\u5148\u307b\u3069Controller\u3067\u4f5c\u6210\u3057GameViewModel\u306b\u683c\u7d0d\u3057\u305f\u60c5\u5831\u3092\u53d7\u3051\u53d6\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n@foreach (var card in Model.Player)\n<\/pre><\/div>\n\n\n<p>GameViewModel\u306ePlayer\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u683c\u7d0d\u3057\u305f\u30ab\u30fc\u30c9\u60c5\u5831\u3092\u30eb\u30fc\u30d7\u3067\u53d6\u5f97\u3057\u3001\u8868\u793a\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nvar selectCard = $\"select-card-{card.GetHashCode()}\";\n&lt;input id=\"@selectCard\" type=\"radio\" value=\"@card\" name=\"playerSelectCard\">\n<\/pre><\/div>\n\n\n<p>input\u3067\u30d7\u30ec\u30a4\u30e4\u30fc\u306e\u624b\u672d\u60c5\u5831\u3092\u30e9\u30b8\u30aa\u30dc\u30bf\u30f3\u3067\u8868\u793a\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u304d\u307e\u3059\u3002<br>\u624b\u672d\u3092\u9078\u629e\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u306b\u30e9\u30b8\u30aa\u30dc\u30bf\u30f3\u3067\u306e\u8868\u793a\u3068\u3057\u3001\u9078\u629e\u3055\u308c\u305f\u30ab\u30fc\u30c9\u304c\u4f55\u304b\u308f\u304b\u308b\u3088\u3046\u306b\u4e00\u610f\u306eID\u3092\u6301\u305f\u305b\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&lt;label for=\"@selectCard\">&lt;img class=\"player-card\" src=\"@card\" alt=\"Card Image\" \/>&lt;\/label>\n<\/pre><\/div>\n\n\n<p>label\u3067\u30ab\u30fc\u30c9\u306e\u753b\u50cf\u3092\u8868\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Finish\">\u304a\u308f\u308a\u306b<\/h2>\n\n\n\n<p>\u3053\u3053\u307e\u3067\u306e\u5185\u5bb9\u306b\u3088\u3063\u3066\u4e0b\u8a18\u306e\u3088\u3046\u306a\u753b\u9762\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\uff01<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/itport.cloud\/wp-content\/uploads\/2023\/12\/image-2-1024x498.png\" alt=\"\" class=\"wp-image-21069\" width=\"852\" height=\"414\" srcset=\"https:\/\/itport.cloud\/wp-content\/uploads\/2023\/12\/image-2-1024x498.png 1024w, https:\/\/itport.cloud\/wp-content\/uploads\/2023\/12\/image-2-300x146.png 300w, https:\/\/itport.cloud\/wp-content\/uploads\/2023\/12\/image-2-768x374.png 768w, https:\/\/itport.cloud\/wp-content\/uploads\/2023\/12\/image-2-1536x748.png 1536w, https:\/\/itport.cloud\/wp-content\/uploads\/2023\/12\/image-2-450x219.png 450w, https:\/\/itport.cloud\/wp-content\/uploads\/2023\/12\/image-2-900x438.png 900w, https:\/\/itport.cloud\/wp-content\/uploads\/2023\/12\/image-2.png 1839w\" sizes=\"auto, (max-width: 852px) 100vw, 852px\" \/><\/figure>\n\n\n\n<p>CSS\u3067\u304a\u597d\u307f\u306e\u80cc\u666f\u8272\u3084\u30ab\u30fc\u30c9\u306e\u8868\u793a\u4f4d\u7f6e\u306f\u8a2d\u5b9a\u3057\u3066\u3044\u305f\u3060\u3051\u305f\u3089\u3068\u601d\u3044\u307e\u3059\u3002<br>\u4eca\u56de\u306e\u76ee\u7684\u3067\u3042\u3063\u305f\u30d7\u30ec\u30a4\u30e4\u30fc\u306e\u624b\u672d\u3092\u753b\u9762\u4e0a\u306b\u8868\u793a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<br>\u6b21\u56de\u306f\u5bfe\u6226\u76f8\u624b\u306e\u30ab\u30fc\u30c9\u3092\u753b\u9762\u4e0a\u306b\u8868\u793a\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\uff01<br><\/p>\n","protected":false},"excerpt":{"rendered":"\u76ee\u6b21 \u306f\u3058\u3081\u306bModel\u306e\u4f5c\u6210Controller\u306e\u4f5c\u6210View\u306e\u4f5c\u6210\u304a\u308f\u308a\u306b \u306f\u3058\u3081\u306b C#\u3092\u5b66\u3073\u59cb\u3081\u30661\u5e74\u8db3\u3089\u305a\u306e\u79c1\u304c\u4eca\u56de\u306fC#\u3067\u30c8\u30e9\u30f3\u30d7\u30b2\u30fc\u30e0\u306eHigh&amp;Low\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002\u30b2\u30fc\u30e0\u5185\u5bb9\u306f\u30d7\u30ec\u30a4\u30e4\u30fc\u3068\u76f8\u624b\u304c\uff11\uff5e\uff11\uff13\u306e\u30ab\u30fc\u30c9\u3092\u624b\u672d\u3068\u3057\u3001\u540c\u6642\u306b\u51fa\u3057\u305f\u30ab\u30fc\u30c9\u306e\u5927\u304d\u3044\u65b9\u304c\u52dd\u5229\u3068\u306a\u308a\u3001\u52dd\u5229\u6761\u4ef6\u306b\u9054\u3059\u308b\u307e\u3067\u7e70\u308a\u8fd4\u3057\u884c\u3044\u3001\u6700\u7d42\u7684\u306a\u52dd\u8005\u3092\u6c7a\u5b9a\u3057\u307e\u3059\u3002High\uff06Low\u3068\u3044\u3046\u3088\u308a\u3082\u6226\u4e89\u3068\u3044\u3046\u30c8\u30e9\u30f3\u30d7\u30b2\u30fc\u30e0\u306b\u8fd1\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u4eca\u56de\u306f\u30d7\u30ec\u30a4\u30e4\u30fc\u306e\u624b\u672d\u3092\u753b\u9762\u4e0a\u306b\u8868\u793a\u3055\u305b\u308b\u307e\u3067\u3092\u76ee\u6a19\u3068\u3057\u307e\u3059\u3002 Model\u306e\u4f5c\u6210 \u6700\u521d\u306bModel\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u4eca\u56de\u306f2\u3064\u306eModel\u3092\u4f5c\u6210\u3057\u307e\u3059\u30021\u3064\u76ee\u306f\u3001\u30c8\u30e9\u30f3\u30d7\u306e\u30ab\u30fc\u30c9\u60c5\u5831\u3092\u7ba1\u7406\u3057\u3001\u8868\u793a\u3059\u308b\u305f\u3081\u306e\u57fa\u76e4\u3068\u306a\u308b\u305f\u3081&hellip;","protected":false},"author":34,"featured_media":21112,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[152],"tags":[168],"class_list":{"0":"post-21001","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-asp-net-core-mvc","8":"tag-season57"},"_links":{"self":[{"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/posts\/21001","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/users\/34"}],"replies":[{"embeddable":true,"href":"https:\/\/itport.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=21001"}],"version-history":[{"count":13,"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/posts\/21001\/revisions"}],"predecessor-version":[{"id":21132,"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/posts\/21001\/revisions\/21132"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/media\/21112"}],"wp:attachment":[{"href":"https:\/\/itport.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=21001"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itport.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=21001"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itport.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=21001"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}