<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yamekodev</author_name>
  <author_url>https://blog.hatena.ne.jp/yamekodev/</author_url>
  <blog_title>yamekodevの日記</blog_title>
  <blog_url>https://yamekodev.hatenadiary.org/</blog_url>
  <categories>
    <anon>C#</anon>
  </categories>
  <description>ToStringの引数に書式変数を指定すればOK using System; public class Hello{ static void Main(string[] args) { ulong i = 0x123456789; var formatString = &quot;X016&quot;; Console.WriteLine($&quot;0x{i.ToString(formatString)}&quot;); } } 実行結果 0x0000000123456789 参考 C# string interpolation with variable format - Stack Overflow</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyamekodev.hatenadiary.org%2Fentry%2F2021%2F08%2F17%2F111642&quot; title=&quot;書式指定子formatで書式を変数で指定する - yamekodevの日記&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-08-17 11:16:42</published>
  <title>書式指定子formatで書式を変数で指定する</title>
  <type>rich</type>
  <url>https://yamekodev.hatenadiary.org/entry/2021/08/17/111642</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
