Convert View Model property name to string => made easy! (MVC3)

Tutorial on how to create simple extension that converts view model propety name to string

Introduction

Have you ever needed to get a simple property name from MVC View Model?

"Why would I need that?" - you may ask. The answer is pretty simple - if you have jQuery/JavaScript code that works with form elements created from view model, you can have those element names strongly typed in your JavaScript. Also it might be useful in some content output scenarios as well.