asp.net-mvc Pass Razor content to a @helper


Example

Send a Razor part to a @helper, for example a HTML div.

@helper WrapInBox(Func<Object, HelperResult> content)
{
    <div class="box">@content(null) </div>
}

//call 
@WrapInBox(@<div>
                I'm a inner div
            </div>)