I\'m trying to write a html helper extension that outputs an image tag. I need to access (within C# code) something like Razor\'s @Url.Content() helper to get the proper URL
Yes, use this code to add Url.Content into your code:
Url.Content
var img_btn_edit = VirtualPathUtility.ToAbsolute("~/Content/images/pencil.png");