<div>
Email:
<a id="email href="mailto:@Model.Contact.Email">@Model.Contact.Email.ToStringMyCustomFormatted</a>
</div>
I want to create custom method for formatting and apply it like this. (in the same way we can apply ToString() method to this.) I don't want to use JavaScript to do any formatting by using Document.Ready(). In short I want to extend ToString method something like ToStringMyCustomFormatted, by which I can apply my own rules to string output. I am not even sure if something like can be done. Please Enlighten !