{"id":573,"date":"2022-11-09T16:46:50","date_gmt":"2022-11-09T07:46:50","guid":{"rendered":"https:\/\/sumomo.ohwaki.jp\/wordpress\/?p=573"},"modified":"2022-11-09T16:46:50","modified_gmt":"2022-11-09T07:46:50","slug":"net7-0-c11","status":"publish","type":"post","link":"https:\/\/sumomo.ohwaki.jp\/wordpress\/?p=573","title":{"rendered":".net7.0 C#11"},"content":{"rendered":"\n<p>\u3064\u3044\u306b.net7.0\u304c\u6b63\u5f0f\u30ea\u30ea\u30fc\u30b9\u3002C#11\u3082\u6b63\u5f0f\u306b\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002<\/p>\n\n\n\n<p>.net7.0+C#11\u306b\u306f\u8272\u3005\u306a\u6a5f\u80fd\u8ffd\u52a0\u304c\u3042\u308b\u304c\u3001\u79c1\u304c1\u756a\u3088\u304f\u4f7f\u3046\u3067\u3042\u308d\u3046\u7269\u306f\u300c\u751f\u6587\u5b57\u30ea\u30c6\u30e9\u30eb\u300d\u304b\u306a\u3002MS\u306e\u30b5\u30a4\u30c8\u3067\u306f\u300c\u672a\u52a0\u5de5\u306e\u6587\u5b57\u30ea\u30c6\u30e9\u30eb\u300d\u3068\u7ffb\u8a33\u3055\u308c\u3066\u3044\u308b\u304c\u3001\u8981\u306f\u6587\u5b57\u5217\u4e2d\u306b\u300c&#8221;\u300d\u3084\u300c{\u300d\u7b49\u3092\u30a8\u30b9\u30b1\u30fc\u30d7\u6587\u5b57\u7121\u3057\u3067\u66f8\u3051\u308b\u69cb\u6587\u3060\u3002<\/p>\n\n\n\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u611f\u3058\u3067\u6587\u5b57\u5217\u3092\u5b9a\u7fa9\u3067\u304d\u308b\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-csharp\" data-file=\"\u751f\u6587\u5b57\u30ea\u30c6\u30e9\u30eb\" data-lang=\"C#\"><code>string jsonstr = &quot;&quot;&quot;\n[\n    {&quot;Name&quot;: &quot;T.Sumomo&quot;, &quot;Email&quot;: &quot;t.sumomo@momo.com&quot;},\n    {&quot;Name&quot;: &quot;J.Sumomo&quot;, &quot;Email&quot;: &quot;j.sumomo@momo.com&quot;},\n    {&quot;Name&quot;: &quot;S.Sumomo&quot;, &quot;Email&quot;: &quot;s.sumomo@momo.com&quot;}\n]\n&quot;&quot;&quot;;<\/code><\/pre><\/div>\n\n\n\n<p>\u6587\u5b57\u5217\u88dc\u9593\u3082\u53ef\u80fd\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u611f\u3058<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-csharp\" data-file=\"\u7f6e\u63db\" data-lang=\"C#\"><code>int x = 100;\nint y = 200;\nstring replstr = $$&quot;&quot;&quot;\n    { &quot;X&quot; : {{x}}, &quot;Y&quot;: {{y}} }\n&quot;&quot;&quot;;<\/code><\/pre><\/div>\n\n\n\n<p>\u6587\u5b57\u5217\u88dc\u9593\u3068\u8a8d\u8b58\u3055\u305b\u308b\u300c{\u300d\u306e\u6570\u5206\u3001\u300c$\u300d\u3092\u4ed8\u3051\u308b\u3002<\/p>\n\n\n\n<p>\u3061\u306a\u307f\u306b\u3001\u300c&#8221;\u300d\u306e\u6570\u3082\u540c\u3058\u3088\u3046\u306a\u611f\u3058\u3067\u3001\u300c&#8221;&#8221;&#8221;\u300d\u307e\u3067\u30a8\u30b9\u30b1\u30fc\u30d7\u7121\u3057\u306a\u3089\u3070\u3001\u300c&#8221;&#8221;&#8221;&#8221;\u300d\u3068\u3059\u308b\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-csharp\" data-file=\"&quot;&quot;&quot;\u306e\u30a8\u30b9\u30b1\u30fc\u30d7\u306a\u3057\" data-lang=\"C#\"><code>string example = &quot;&quot;&quot;&quot;\nstring jsonstr = &quot;&quot;&quot;\n[\n    {&quot;Name&quot;: &quot;T.Sumomo&quot;, &quot;Email&quot;: &quot;t.sumomo@momo.com&quot;},\n    {&quot;Name&quot;: &quot;J.Sumomo&quot;, &quot;Email&quot;: &quot;j.sumomo@momo.com&quot;},\n    {&quot;Name&quot;: &quot;S.Sumomo&quot;, &quot;Email&quot;: &quot;s.sumomo@momo.com&quot;}\n]\n&quot;&quot;&quot;;\n&quot;&quot;&quot;&quot;;<\/code><\/pre><\/div>\n\n\n\n<p>\u4e0a\u8a18\u4e00\u5fdc\u3001\u52d5\u4f5c\u78ba\u8a8d\u3057\u3066\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5f8c\u3001\u5225\u8a18\u4e8b\u306b\u3059\u308b\u3064\u3082\u308a\u3060\u3051\u3069\u3001\u6570\u5024\u7cfb\u304cINumber&lt;T>\u3092\u30a4\u30f3\u30d7\u30ea\u30e1\u30f3\u30c8\u3057\u305f\u3053\u3068\u3002\u3053\u308c\u306b\u3088\u308a\u3001int\u3084double\u7b49\u6570\u5024\u5c02\u7528\u306e\u30b8\u30a7\u30cd\u30ea\u30c3\u30af\u30af\u30e9\u30b9\u306e\u5b9a\u7fa9\u304c\u7c21\u5358\u306b\u306a\u3063\u305f\u3002\u305d\u308c\u3068\u3001Int128\u304b\u306a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3064\u3044\u306b.net7.0\u304c\u6b63\u5f0f\u30ea\u30ea\u30fc\u30b9\u3002C#11\u3082\u6b63\u5f0f\u306b\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002 &hellip; <a href=\"https:\/\/sumomo.ohwaki.jp\/wordpress\/?p=573\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18,9,4],"tags":[],"class_list":["post-573","post","type-post","status-publish","format-standard","hentry","category-net","category-c","category-4"],"_links":{"self":[{"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/573","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=573"}],"version-history":[{"count":2,"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/573\/revisions"}],"predecessor-version":[{"id":575,"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/573\/revisions\/575"}],"wp:attachment":[{"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=573"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=573"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sumomo.ohwaki.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=573"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}