{"categories":["C#"],"provider_url":"https://hatena.blog","type":"rich","author_url":"https://blog.hatena.ne.jp/potisan/","author_name":"potisan","url":"https://potisan-programming-memo.hatenablog.jp/entry/2020/12/06/195730","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpotisan-programming-memo.hatenablog.jp%2Fentry%2F2020%2F12%2F06%2F195730\" title=\"C# is\u306b\u3088\u308b3\u7a2e\u985e\u306e\u30d1\u30bf\u30fc\u30f3\u30de\u30c3\u30c1\u30f3\u30b0 - potisan\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","published":"2020-12-06 19:57:30","provider_name":"Hatena Blog","blog_url":"https://potisan-programming-memo.hatenablog.jp/","version":"1.0","blog_title":"potisan\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30e1\u30e2","image_url":null,"title":"C# is\u306b\u3088\u308b3\u7a2e\u985e\u306e\u30d1\u30bf\u30fc\u30f3\u30de\u30c3\u30c1\u30f3\u30b0","height":"190","description":"\u52d5\u4f5c\u78ba\u8a8d\u74b0\u5883\uff1aC# 9.0\uff08.NET 5.0\uff09 is\u306b\u3088\u308b\u30d1\u30bf\u30fc\u30f3\u30de\u30c3\u30c1\u30f3\u30b0\u306e\u6982\u8981\u3068\u5177\u4f53\u4f8b\u3067\u3059\u3002 \u6982\u8981 is\u30d1\u30bf\u30fc\u30f3 \u6982\u8981 \u578b\u30d1\u30bf\u30fc\u30f3 \u5f0f\u306e\u578b\u30ad\u30e3\u30b9\u30c8\u7d50\u679c\u3092\u5909\u6570\u306b\u4fdd\u6301\u3057\u3066\u30ad\u30e3\u30b9\u30c8\u53ef\u5426\u3092\u8fd4\u5374\u3059\u308b\u3002 \u5b9a\u6570\u30d1\u30bf\u30fc\u30f3 \u5f0f\u304c\u5b9a\u6570\u5f0f\u3092\u6e80\u305f\u3059\u304b\u5224\u5b9a\u3059\u308b\u3002 var\u30d1\u30bf\u30fc\u30f3 \u5f0f\u306e\u7d50\u679c\u3092\u30ed\u30fc\u30ab\u30eb\u5909\u6570\u306b\u4fdd\u6301\u3057\u3066true\u3092\u8fd4\u3059\u3002\u30b9\u30b3\u30fc\u30d7\u304cfor\u521d\u671f\u5316\u5f0f\u3068\u306f\u7570\u306a\u308b\u3053\u3068\u306b\u6ce8\u610f\u3059\u308b\u3002 \u5177\u4f53\u4f8b using System; int x = 123; int y = 0; // \u578b\u30d1\u30bf\u30fc\u30f3 Console.WriteLine(x + 1 is int t1 ? t1 : -1); // True\u3002 Console.WriteLi\u2026"}