<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Takachan</author_name>
  <author_url>https://blog.hatena.ne.jp/Takachan/</author_url>
  <blog_title>PG日誌</blog_title>
  <blog_url>https://takap-tech.com/</blog_url>
  <categories>
    <anon>C#</anon>
  </categories>
  <description>C#で文字列どうしを大文字と小文字の区別しないで比較する方法の紹介とちょっとした便利ネタの紹介です。 大文字と小文字を区別しないで比較する方法 拡張メソッドを定義する 大文字と小文字を区別しないで比較する方法 標準ライブラリの範囲内で大文字と小文字を区別しないで文字列比較する方法は以下の3つの方法があります。 // (1) 全部小文字にしてから比較 if (a.ToLower() == b.ToLower()) { Console.WriteLine(&quot;a == b&quot;); } // (2) string 型にある Compare メソッドでオプション指定する if (string.Compar…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakap-tech.com%2Fentry%2F2020%2F08%2F28%2F212616&quot; title=&quot;【C#】文字列を大文字・小文字を区別しないで比較する - PG日誌&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>2020-08-28 21:26:16</published>
  <title>【C#】文字列を大文字・小文字を区別しないで比較する</title>
  <type>rich</type>
  <url>https://takap-tech.com/entry/2020/08/28/212616</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
