convert crc javascript func to c$ func
<p>i have a problem whit c#,
please someone convert this javascript function to c#.</p>

<pre><code>function mycrc(str) {
        var c;
        var crcTable = [];
        for(var n = 0; n &lt; 256; n++){
            c = n;
            for(var k = 0; k &lt; 8; k++){
                c = ((c&amp;1) ? (0xEDB88320 ^ (c &gt;&gt;&gt; 1)) : (c &gt;&gt;&gt; 1));
            }
            crcTable[n] = c;
        }



    var crc = 0 ^ (-1);
    for (var i = 0; i &lt; str.length; i++ ) {
        crc = (crc &gt;&gt;&gt; 8) ^ crcTable[(crc ^ str.charCodeAt(i)) &amp; 0xFF];
    }
    return (crc ^ (-1)) &gt;&gt;&gt; 0;
}
</code></pre>