如题描述:代码如下
[WebGet(UriTemplate = "{id}")]
public SampleItem Get(string id)
{
// TODO: Return the instance of SampleItem with the given id
throw new NotImplementedException();
}
Get方法中参数设置为int就报错说只能为string,记得在3.5版本下面的REST可以自己转换类型的;
现项目是3.5的希望升级到4.0,N多方法参数是int类型的,囧;
qq_笑_17
茅侃侃
随时随地看视频慕课网APP