首页
AI Coding
NEW
沸点
课程
直播
活动
AI刷题
APP
插件
搜索历史
清空
创作者中心
写文章
发沸点
写笔记
写代码
草稿箱
创作灵感
查看更多
会员
登录
注册
拾遗
温水小青蛙
创建于2021-09-01
订阅专栏
鸡零狗碎的小东西,健忘人士的日常挣扎
暂无订阅
共33篇文章
创建于2021-09-01
订阅专栏
默认顺序
默认顺序
最早发布
最新发布
检查是什么类型
Link typeof takes a type name (which you specify at compile time). GetType gets the runtime type of
Array 和 String[], IEnumerable
判断是不是IEnumerable Array和String[] 都是IEnumerable 初始化Array
Web Api Failure Mode Handling
希望能以一种相对统一的方式来处理Web API的Response StatusCode() 是ControllerBase的,所以就为之写了扩展方法 设计为XXXService的所有方法,全都返回一个
如何为Web API设置listening port
如何为Web API设置listening port 从configure文件中读取URL和端口,.UseUrls(m_startUrl) app.config
?.操作符
问题: 是否有办法缩短下面的code 答案:有 ?.是一个null的传播算子,值为null时会短路掉SomeMethod() ?.只被access一次,所以不存在检查和调用之间值发生变化这种情况
何时使用GET, POST, PUT
【使用GET】 【使用POST】 【使用PUT】 【什么是幂等】 【什么是安全】
如何从data model中抹去所有的guid值
```js private void EraseGuid(object classInstance) { Find_MemberGuid_And_Erase(classInstance); Trave
AppDomain.CurrentDomain.AssemblyResolve
```js private static void LoadAssemblies() { AppDomain.CurrentDomain.AssemblyResolve += new ResolveE
写单元测试
【AssemblyInitialize】【ClassInitialize】【TestInitialize】【测试异常】【测试异步方法】【Moq: Callback的用法】
Process 的用法
【Start Process】【Process退出的时候触发Exited事件】 【process的实例,可以在process的Exited事件的回调中access得到】
Newtonsoft Json Property
Ignore null value Link Ignore property
程序集重定向
Redirecting Assembly Versions | Microsoft Docs
LINQ
【First()和FirstOrDefault()】 【OrderBy()】 【ForEach()】【Select()】