C# static function with this as parameter to Java function
<p>I got a C# project which needs to be rewritten to java. Unfortunately the original programmer cannot be reached and I have some troubles with some of the C# specific things in the project.</p>

<p>Lets say we have a class in C# like:</p>

<pre><code>public static class MySampleClass : Object
{
  ...
  public static IEnumerable&lt;MyObject&gt; MyFunc(this MyObject t) {
   //a lot of code
  }
  ...
}
</code></pre>

<p>I dont understand the <strong>this</strong> before the parameter in this function. What does it reference to? I mean we're in a static class and a static function, so whats "this"? Is it just a reference to <strong>t</strong> then?</p>

<p>And of course my question would be that this function header is substitute for this in Java:</p>

<pre><code>public static Iterable&lt;MyObject&gt; MyFunc(MyObject t)
</code></pre>

<p>Or do I need to do anything else? </p>

<p>Thank you for your help</p>
