<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hikaruright</author_name>
  <author_url>https://blog.hatena.ne.jp/hikaruright/</author_url>
  <blog_title>hikarurightのPG戦記</blog_title>
  <blog_url>https://hikaruright.hatenadiary.org/</blog_url>
  <categories>
    <anon>C#</anon>
  </categories>
  <description>C#にて、呼び出し元のメソッドとクラス名を取得する方法 public void GetStackInfos(){ //一つ前のスタックを取得 StackFrame callerFrame = new StackFrame(1); //メソッド名 string methodName = callerFrame.getMethod().Name; //クラス名 string className = callerFrame.getMethod().ReflectedType.FullName; //以下にクラス名とメソッド名を使う処理を記述 }これだけでいいっぽい。 うまく応用できればログ出力の部分…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhikaruright.hatenadiary.org%2Fentry%2F20120820%2F1345454949&quot; title=&quot;C#で呼び出し元のクラス名やメソッド名を取得 - hikarurightの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>2012-08-20 18:29:09</published>
  <title>C#で呼び出し元のクラス名やメソッド名を取得</title>
  <type>rich</type>
  <url>https://hikaruright.hatenadiary.org/entry/20120820/1345454949</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
