<?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 Framework</anon>
    <anon>.NET Core</anon>
  </categories>
  <description>2020-09-01 タイトルの通り、C#で自分で作成したEnum型に属性を付与し、その属性を取得およびその属性の値の取得をしたいと思います。 属性をオブジェクトとして取得して内容を取り出す流れになります。 対象の型の準備 値を取得する拡張メソッドの作成 拡張メソッドの使い方 HasAttribute の使い方 GetAttrubute の使い方 TryGetAttribute の使い方 複数の属性が付与されていても取得できる パフォーマンスどうなのか？ 計測結果 パフォーマンス測定のコード 結論：Enumに属性を使用するべきか？ 対象の型の準備 まず以下のように自作の属性を宣言していたとしま…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakap-tech.com%2Fentry%2F2018%2F12%2F20%2F231234&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>https://cdn-ak.f.st-hatena.com/images/fotolife/T/Takachan/20181019/20181019004124.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-12-20 23:12:34</published>
  <title>C#でEnumに付与した属性と属性の値を取得する</title>
  <type>rich</type>
  <url>https://takap-tech.com/entry/2018/12/20/231234</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
