我发现包:Microsoft.VisualStudio.CodeGeneration 在 nuget 中有超过 20,000,000 次下载。但我找不到任何文档。
如何使用它?
有没有关于它的文章?
我想用 nginx 监听端口并设置代理。
这是服务器的配置
server{
listen 8080;
location / {
proxy_pass http://127.0.0.1:82;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-live;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
server{
listen 8081;
location / {
proxy_pass http://127.0.0.1:83;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-live;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
Run Code Online (Sandbox Code Playgroud)
8080可以,但是8081无法连接
我有一个课程并且很容易转换为 json
但有时我想向 json 添加一些属性
我应该创建另一个类并转换为 json 吗?
我有一堂课
class Person{
string name{get;set;}
string age{get;set;}
}
Run Code Online (Sandbox Code Playgroud)
如果我想添加一个像性这样的属性,我必须创建一个具有名称、年龄和性别的类?