0
我有一個需要在iphone中使用的web服務。將context.request轉換爲類類型
public void test()
{
Context.Response.ContentType = "text/plain";
Context.Response.Write(new JavaScriptSerializer().Serialize(new BAL_ShowOrders().test(Context.Request["obj"])));
}
的問題是,Context.Request [ 「OBJ」]需要是Prop_ShowOrders []型。我如何context.request轉換爲prop_showorders [] obj類型
我已經嘗試過鑄造,但它說不能將類型'字符串'轉換爲'XXXX.Properties.Prop_ShowOrders []'。這是第一行 – Chief