如何将对象序列化为查询字符串格式?我似乎无法在谷歌上找到答案.谢谢.
这是我将序列化的对象作为示例.
public class EditListItemActionModel
{
public int? Id { get; set; }
public int State { get; set; }
public string Prefix { get; set; }
public string Index { get; set; }
public int? ParentID { get; set; }
}
Run Code Online (Sandbox Code Playgroud)