title: Is there some library to help me to write Javascript code in C#?
body: <p>I'm looking for something to help me to write C# code that would be automatically converted to javascript. The advantage would be code-completion and type-safety.</p>
  
  <p>Some features that I'm looking for are the following:</p>
  
  <ul>
  <li>Auto creation of prototype equivalents to C# classes.</li>
  <li>Auto generation of javascript code based on C# code (property settings, method calls...)</li>
  <li>Exposition of Javascript types such as Window, Document and etc.</li>
  </ul>
  
  <p>Is there something like that out there?</p>