<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>potisan</author_name>
  <author_url>https://blog.hatena.ne.jp/potisan/</author_url>
  <blog_title>potisanのプログラミングメモ</blog_title>
  <blog_url>https://potisan-programming-memo.hatenablog.jp/</blog_url>
  <categories>
    <anon>C#</anon>
  </categories>
  <description>配列の入ったobject型をstring.Join()で結合するにはIEnumerableにキャストしてからOfType&lt;T&gt;()を使います。キャストせず渡すと可変長引数の最初の引数として素直にToString()されます。ちなみにIEnumerableへキャストすると文字列（char[]配列）も分割されるので適宜x.GetType().IsArrayで分岐します。 // global using有効時 using System.Collections; object o = new int[5]; Console.WriteLine(string.Join(&quot;, &quot;, o)); Consol…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpotisan-programming-memo.hatenablog.jp%2Fentry%2F2023%2F01%2F29%2F083455&quot; title=&quot;C#11 配列の入ったobject型をstring.Joinで結合する - potisanのプログラミングメモ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-01-29 08:34:55</published>
  <title>C#11 配列の入ったobject型をstring.Joinで結合する</title>
  <type>rich</type>
  <url>https://potisan-programming-memo.hatenablog.jp/entry/2023/01/29/083455</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
