title: Automatic code generation from a C# class to JavaScript equivalent
body: <p>I'd like to expose a class I've written in C# down to the javascript equivalent. </p>
  
  <p>for example I have a class like:</p>
  
  <pre><code>// C# class to represent an Appriaser
  public class Appraiser
  {
      public Appraiser(appraiserId, appraiserName)
      {
           AppraiserId = appraiserId;
           AppraiserName = appraiserName;
      }
      public int AppraiserId { get; set; }
      public string AppraiserName { get; set; }
  }
  </code></pre>
  
  <p>and I would like the ability to automatically generate a version of this class in javascript</p>
  
  <pre><code>// javascript class to represent an Appraiser
  function Appraiser(appraiserId, appraiserName) {
      var self = this;
      self.appraiserid= appraiserId;
      self.appraisername= appraisername;
  }
  </code></pre>
  
  <p>Is this possible with JSON.NET or another method?</p>