<?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>.NET</anon>
    <anon>C#</anon>
  </categories>
  <description>ものすごく昔に「【C#】文字列の先頭だけを大文字 or 小文字に変換する」という記事を書きましたが、あれからかなり時間が経って（前に記事を書いたのは今から5年前）.NETに Span&lt;T&gt; や string.Create という機能が追加されよりパフォーマンス良く実装できるようになったのでもう一度実装例を考えたいと思います。 確認環境 .NET8（C# 12） Windows11 + VisualStudio 2022 動作はWindowsのコンソールアプリで確認しています 実装コードは以下の通りです。StringExtension クラスを作成して実装します。 コード例 // StringE…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakap-tech.com%2Fentry%2F2025%2F07%2F06%2F232329&quot; title=&quot;【C#/.NET8版】文字列の先頭だけを大文字 or 小文字に変換する - 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>2025-07-06 23:23:29</published>
  <title>【C#/.NET8版】文字列の先頭だけを大文字 or 小文字に変換する</title>
  <type>rich</type>
  <url>https://takap-tech.com/entry/2025/07/06/232329</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
