<?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>
    <anon>.NET</anon>
    <anon>.NET Core</anon>
    <anon>.NET Framework</anon>
    <anon>UniRx</anon>
  </categories>
  <description>enum は宣言した順に数字が自動で振られています。 以下の例だと Apple=0, Banana=1 というように自動でインクリメントされた数字が割り当てられます。なのでメンバーを途中に追加すると数値が変わってしまいます。 public enum Type { Apple, // 0 Banana, // 1 Orange, // 2 Grape, // 3 Watermelon // 4 } // 途中に追加すると暗黙の数字がずれる public enum Type { Apple, // 0 Banana, // 1 Orange, // 2 Cherry, // 3 ★追加 Grape…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakap-tech.com%2Fentry%2F2023%2F08%2F05%2F225405&quot; title=&quot;【C#】enumのメンバーに任意の番号を振る - 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>2023-08-05 22:54:05</published>
  <title>【C#】enumのメンバーに任意の番号を振る</title>
  <type>rich</type>
  <url>https://takap-tech.com/entry/2023/08/05/225405</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
