C# get private method by reflection from another class and invoke it : <p>In Java you can invoke a private method like so:</p>

<pre><code>Method m = obj.getClass().getDeclaredMethod("foo", null); 
m.setAccessible(true);
m.invoke("bar");
</code></pre>

<p>What is the equivalence in C#? I need to call a private method in the Unit Test. </p>
