예제 #1
0
        /// <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)
        {
            // X:\jsc.svn\examples\javascript\test\TestMemberInitExpression\TestMemberInitExpression\Application.cs

            // {{ Name = foo, FieldType = [native] String }}
            var x = new { foo = new xSpecial() };

            var f = x.GetType().GetFields()[0];

            new IHTMLPre { new { f.Name, f.FieldType } }.AttachToDocument();

            var xf = new sFieldInfo { InternalField = f };

            new IHTMLPre { new { xf.Name, xf.FieldType } }.AttachToDocument();
        }
예제 #2
0
        /// <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)
        {
            // X:\jsc.svn\examples\javascript\test\TestMemberInitExpression\TestMemberInitExpression\Application.cs

            // {{ Name = foo, FieldType = [native] String }}
            var x = new { foo = new xSpecial() };

            var f = x.GetType().GetFields()[0];

            new IHTMLPre {
                new { f.Name, f.FieldType }
            }.AttachToDocument();

            var xf = new sFieldInfo {
                InternalField = f
            };

            new IHTMLPre {
                new { xf.Name, xf.FieldType }
            }.AttachToDocument();
        }