As now I have started to use Script#, I tried to send a data package to server via ajax:
jQuery.AjaxRequest<RespondPackage>(url, new jQueryAjaxOptions("type", "POST", "dataType", "json", "data", dataSendToServer));
with dataSendToServer is in form of object Type "SendPackage" using get and set accessor, like this:
public class SendPackage
{ private string reportID;
public string ReportID
{
get { return reportID; }
set { reportID = value; }
}
public SendPackage(string reportID)
{
this.reportID = reportID;
}
}
While sending the data to server using ajax after transform to Javascript, it send not only the reportID (the data needed) , but also get_reportID and set_reportID.
I have tried several method to remove the dummy properties of the get and set accessor like Type.DeleteField but it seems doesn't work. Therefore I want to ask if there is any method to treat the data sending to server to remove the property of get and set accessor?
Thanks for your attention.