title: How to get a MethodBase object for a method?
body: <p>I am trying to work with the class found in this <a href="https://stackoverflow.com/questions/986180/how-can-i-determine-which-exceptions-can-be-thrown-by-a-given-method">post</a> but it needs a MethodBase to run.</p>
  
  <p>I read <a href="https://stackoverflow.com/questions/6021558/what-is-the-fastest-way-to-get-a-methodbase-object">What is the fastest way to get a MethodBase object?</a> but i couldn't get any solution to work.</p>
  
  <p>What i need to do is to get the MethodBase object from a function.</p>
  
  <p>For example getting the MethodBase for the static function WriteLine() of the class Console or getting the MethodBase for the non-static function Add() of a List&lt;>.</p>
  
  <p>Thanks for your help!</p>