<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>xin9le</author_name>
  <author_url>https://blog.hatena.ne.jp/xin9le/</author_url>
  <blog_title>xin9le.net</blog_title>
  <blog_url>https://xin9le.hatenablog.jp/</blog_url>
  <categories>
    <anon>C#</anon>
  </categories>
  <description>C# 6.0 までの数値リテラルでは、桁数がどれだけになっても区切り文字を入れることができませんでした。今回 C# 7 で数値セパレーター (= Digit Separators) という機能が追加され、数値リテラルを自由に桁区切りしてグルーピングできるようになりました。 区切り文字として利用できるものは _ のみ。特に前回紹介した 2 進リテラルと一緒に使うと便利そうです。 var bin = 0b1100_1010; //--- 4 ビットずつ var dec = 12_345_678; //--- 通貨などでよくある 3 桁区切り var hex = 0x33_ff_cc; //--- …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxin9le.hatenablog.jp%2Fentry%2F2016%2F04%2F16%2F160712&quot; title=&quot;数値セパレーター - xin9le.net&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>2016-04-16 16:07:12</published>
  <title>数値セパレーター</title>
  <type>rich</type>
  <url>https://xin9le.hatenablog.jp/entry/2016/04/16/160712</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
