static int Main() { IHelloWorldWriter writer = new RealWriter(); if (writer.WriteIt() != 33) return 1; return 0; }
static int Main() { IHelloWorldWriter writer = new RealWriter(); if (writer.WriteIt() != 33) { return(1); } return(0); }
/// <summary> /// Renders the DOM to the bound TextWriter. /// </summary> public void Render() { if (_AsyncPostbackData != null) { foreach (var data in _AsyncPostbackData) { RealWriter.Write(data.Render()); } } else { string content = Dom.Render(); RealWriter.Write(content); } }
public void Render() { if (_AsyncPostbackData != null) { foreach (var data in _AsyncPostbackData) { RealWriter.Write(data.Render()); } } else { string content = Dom.Render(); if (_UserOutput != null) { content += "<script type=\"text/javascript\">" + System.Environment.NewLine + UserOutput.ToString() + "</script>"; } RealWriter.Write(content); } }