<?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 Core</anon>
    <anon>.NET Framework</anon>
    <anon>C#</anon>
    <anon>Unity</anon>
  </categories>
  <description>はじめに C# の「文字列補完」機能という機能があります。ものすごい雑に言うと C# 6 以降で可能な文字列の先頭に「$」記号を付けることでフォーマット付き文字列を埋め込んで記述することができ視認性を向上することができる機能です。 記述例は以下の通りです。 // ★文字列補完を使った表現 int a = 1010; string msg3 = $&quot;({a})&quot;; // &gt; (1010) // 上記を今までの方法で記述すると以下の通り // (1) + で連結する string msg1 = &quot;(&quot; + a + &quot;)&quot;; // &gt; (1010) // (2) Formatメソッドを使う stri…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakap-tech.com%2Fentry%2F2021%2F01%2F14%2F234050&quot; title=&quot;C#の文字列補完はToStringした方が高速になる理由を調べてみた - 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>2021-01-14 23:40:50</published>
  <title>C#の文字列補完はToStringした方が高速になる理由を調べてみた</title>
  <type>rich</type>
  <url>https://takap-tech.com/entry/2021/01/14/234050</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
