<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>akiramei</author_name>
  <author_url>https://blog.hatena.ne.jp/akiramei/</author_url>
  <blog_title>匣の向こう側 - あまりに.NETな</blog_title>
  <blog_url>https://akiramei.hatenadiary.org/</blog_url>
  <categories>
    <anon>.NET</anon>
    <anon>C#</anon>
    <anon>Code</anon>
  </categories>
  <description>便利だけどあんまり使われていないので、使用例をちょっと紹介。開発中に#ifdef DEBUGでトレース埋め込んだりすることがあると思います。良くあるパターンとしてメソッド名や引数、時間などを書き出すと思いますが、単純作業で退屈ですし、ソースコードが読みにくくなってちょっと嫌です。そんなの時に、カスタム属性とRealProxyを使うと便利です。こんなクラスがあったとします。 class MyClass : ContextBoundObject { public double Add(double x, double y) { return x + y; } public void Multipl…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fakiramei.hatenadiary.org%2Fentry%2F20040328%2F1&quot; title=&quot;カスタム属性とRealProxy - 匣の向こう側 - あまりに.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>2004-03-28 09:00:01</published>
  <title>カスタム属性とRealProxy</title>
  <type>rich</type>
  <url>https://akiramei.hatenadiary.org/entry/20040328/1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
