/// <summary> /// This is a javascript application. /// </summary> /// <param name="page">HTML document rendered by the web server which can now be enhanced.</param> public Application(IApp page) { var x = new foo(); new IHTMLPre { new { x } }.AttachToDocument(); var xIsIDisposable = x is IDisposable; new IHTMLPre { new { xIsIDisposable } }.AttachToDocument(); var xType = x.GetType(); new IHTMLPre { new { xType } }.AttachToDocument(); var xIsAssignableFrom = typeof(IDisposable).IsAssignableFrom(xType); new IHTMLPre { new { xIsAssignableFrom } }.AttachToDocument(); }