예제 #1
0
        void SendClrObject(HttpContext context, object obj)
        {
            var ser = new JsClrSerializer
            {
                Writer = context.Response.Output,
            };
            var s = ser.Serialize(obj);

            context.Response.Write("return ");
            context.Response.Write(s);
            context.Response.Write(";");
        }
예제 #2
0
 void SendClrObject(HttpContext context, object obj)
 {
     var ser = new JsClrSerializer
     {
         Writer = context.Response.Output,
     };
     var s = ser.Serialize(obj);
     context.Response.Write("return ");
     context.Response.Write(s);
     context.Response.Write(";");
     
 }