{"description":"C# 8.0 \u306e\u65b0\u6a5f\u80fd - C# \u30ac\u30a4\u30c9 | Microsoft DocsC# 8.0\u3067\u8ffd\u52a0\u3055\u308c\u305fRange\u3084Index\u306b\u3088\u3063\u3066\u3001\u914d\u5217\u306e\u4e00\u90e8\u306e\u8981\u7d20\u3092\u53c2\u7167\u3057\u305f\u3044\u3068\u304d\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u66f8\u3051\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002Ruby\u3063\u307d\u3044\u3002 int[] arr = {0, 1, 2, 3, 4, 5}; arr[^1].Dump(); // => 5 (\u6700\u5f8c\u306e\u8981\u7d20\u304c\u53d6\u308c\u308b) arr[1..^1].Dump(); // => [1,2,3,4] ^1\u3068\u3060\u3051\u66f8\u304f\u3068System.Index\u578b\u30011..2\u3060\u3068System.Range\u578b\u3067\u8a55\u4fa1\u3055\u308c\u308b\u3002...\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u914d\u5217\u306e\u6dfb\u3048\u5b57\u306bRange\u3092\u6e21\u3057\u305f\u5834\u5408\u3001RuntimeHelp\u2026","author_url":"https://blog.hatena.ne.jp/wata_d/","type":"rich","categories":["C#","programming"],"provider_url":"https://hatena.blog","provider_name":"Hatena Blog","width":"100%","title":"C#\u306eRange\u3068Index","height":"190","blog_url":"https://www.little-cuckoo.jp/","published":"2019-11-29 19:30:00","url":"https://www.little-cuckoo.jp/entry/2019/11/29/193000","image_url":null,"version":"1.0","author_name":"wata_d","blog_title":"\u9591\u53e4\u9ce5","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.little-cuckoo.jp%2Fentry%2F2019%2F11%2F29%2F193000\" title=\"C#\u306eRange\u3068Index - \u9591\u53e4\u9ce5\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}