public void RenderBody(TextWriter writer) { if (body == null) { throw new MonoRailException("This component does not have a body content to be rendered"); } using (parent.SetOutputStream(writer)) { body.Call(new object[] { writer }); } }