<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>baba_s</author_name>
  <author_url>https://blog.hatena.ne.jp/baba_s/</author_url>
  <blog_title>コガネブログ</blog_title>
  <blog_url>https://baba-s.hatenablog.com/</blog_url>
  <categories>
    <anon>C#</anon>
    <anon>C# - 拡張メソッド</anon>
  </categories>
  <description>はじめに 例えばCRLF(\r\n)の改行で区切られた文字列をString.Split関数で分割する場合 var src = &quot;ピカチュウ\r\nカイリュー\r\nヤドラン&quot;; // 1. エラー src.Split(&quot;\r\n&quot;); // 2. OK src.Split(new []{ &quot;\r\n&quot; }, StringSplitOptions.None); 1のように文字列を引数で受け取るSplit関数がオーバーロードされていないので 2のように区切り文字を配列に変換して、さらにStringSplitOptionsを指定する必要があり 構文が冗長になってしまいます 対応方法 using Sy…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbaba-s.hatenablog.com%2Fentry%2F2014%2F05%2F01%2F170410&quot; title=&quot;【C#】String.Splitをもっと使いやすくする拡張メソッド - コガネブログ&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>https://cdn-ak.f.st-hatena.com/images/fotolife/b/baba_s/20180826/20180826160156.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-05-01 17:04:10</published>
  <title>【C#】String.Splitをもっと使いやすくする拡張メソッド</title>
  <type>rich</type>
  <url>https://baba-s.hatenablog.com/entry/2014/05/01/170410</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
