public void Write (object obj)
{
TextWriter writer = Output;
#if NET_4_0
// Emulating .NET
if (writer == null)
throw new NullReferenceException (".NET 4.0 emulation. A null value was found where an object was required.");
#endif
if (obj == null)
return;
writer.Write (obj.ToString ());
}
private void ReplyError(HttpStatusCode statusCode, string text, HttpResponse response) { response.StatusCode = (int)statusCode; response.ContentType = "text/html"; response.Write(String.Format("<html><title>MovieInfo : ERROR</title><body><p>{0}</p></body></html>", text)); for (int i = 0; i < 85; ++i) response.Write(" "); }