convert javascript function to C# (conversion question)
<p>since i'm poor with javascript I would like someone to convert this small function to C# code for me..</p>

<pre><code>var cn = 0;
function C(i,s)
{ 
   return s.charCodeAt(i) ^ (cn|1) ^ ((cn++ &amp; 1)?i:0) ^ 0x55 
}
</code></pre>

<p>I would really appreciate your help. thanks in advance :)</p>
