convert code c++ to c#
<p>im trying to convert this code to c#</p>

<pre><code>for ( int k=0; k &lt; 3; k++ )
 if ( anim.jointInfo[j].flags &amp; (1 &lt;&lt; k)  ) {
        //....
 }

flags: int
jointInfo: List&lt;&gt;
</code></pre>
