当前位置:新励学网 > 秒知问答 > 如何用电脑编程做圆形

如何用电脑编程做圆形

发表时间:2024-07-11 13:50:55 来源:网友投稿

新建IndexModule.cs类文件,让IndexModule继承NancyModule,在IndexModule的构造函数里编写路由规则及HTTP处理,IndexModule如下:publicclassIndexModule:NancyModule{publicIndexModule(){Get[/]=_=>HelloWorld;Get[/GetPerson/{id:int}]=parameters=>{Personp=newPerson();p.ID=parameters.ID;p.Name=loogn;returnResponse.AsJson(p);};}}publicclassPerson{publicintID{get;set;}publicstringName{get;set;}}

免责声明:本站发布的教育资讯(图片、视频和文字)以本站原创、转载和分享为主,文章观点不代表本网站立场。

如果本文侵犯了您的权益,请联系底部站长邮箱进行举报反馈,一经查实,我们将在第一时间处理,感谢您对本站的关注!