{"provider_url":"https://hatena.blog","version":"1.0","categories":[],"blog_title":"C#\u7df4\u7fd2\u65e5\u8a18","type":"rich","height":"190","provider_name":"Hatena Blog","url":"https://noriok.hatenadiary.jp/entry/2016/01/07/221455","published":"2016-01-07 22:14:55","author_name":"noriok","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnoriok.hatenadiary.jp%2Fentry%2F2016%2F01%2F07%2F221455\" title=\"Enumerable.Cast&lt;T&gt; \u306f int \u3092 long \u306b\u30ad\u30e3\u30b9\u30c8\u3067\u304d\u306a\u3044 - C#\u7df4\u7fd2\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://noriok.hatenadiary.jp/","image_url":null,"description":"Enumerable.Cast \u30e1\u30bd\u30c3\u30c9\u3067\u3001\u8981\u7d20\u3092 int \u304b\u3089 long \u306b\u30ad\u30e3\u30b9\u30c8\u3059\u308b\u3053\u3068\u306f\u51fa\u6765\u306a\u3044\u3088\u3046\u3067\u3059\u3002 $ csharp Mono C# Shell, type \"help;\" for help Enter statements below. csharp> var xs = new[] { 1 }; csharp> xs.Cast<long>(); // System.InvalidCastException Enumerable.Cast extension method fails to cast from int to long, why? [duplicate] \u306b\u3088\u308b\u3068\u2026","width":"100%","title":"Enumerable.Cast<T> \u306f int \u3092 long \u306b\u30ad\u30e3\u30b9\u30c8\u3067\u304d\u306a\u3044","author_url":"https://blog.hatena.ne.jp/noriok/"}