title: Using Html.EditorFor() for custom type in ASP.NET MVC
body: <p>I have a custom type Money for my ViewModel:</p>
  
  <pre><code>public class Money
  {
      public Money(decimal value)
      {
          Value = value;
      }
  
      public decimal Value { get; private set; }
  
      public override string ToString()
      {
          return string.Format("{0:0.00}", Value);
      }
  }
  </code></pre>
  
  <p>and I want to render a textbox in ASP.NET MVC via <code>HTML.EditorFor(viewModel =&gt; viewModel.MyMoneyProperty)</code> but it doesn't work. Is there a special interface which I have to implement in Money?</p>
  
  <p>Best regards and thanks in advance,</p>
  
  <p>Steffen</p>