会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Cein
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
···
9
下一页
2018年9月29日
C# yield return; yield break;
摘要: using System; using System.Collections; namespace YieldDemo { class Program { public static IEnumerable Power(int num, int exponent) { int counter = 0; ...
阅读全文
posted @ 2018-09-29 17:57 Cein
阅读(285)
评论(0)
推荐(0)
2018年6月7日
C#获取枚举描述
摘要: 调用
阅读全文
posted @ 2018-06-07 17:24 Cein
阅读(227)
评论(0)
推荐(0)
2018年5月29日
.net core web api 使用swagger
摘要: .net 的就不用说了,看这位老哥的 http://www.cnblogs.com/alunchen/p/6888002.html 现在来讲.net core Nuget Packages安装,使用程序包管理器控制台,安装命令:Install-Package Swashbuckle.AspNetCo
阅读全文
posted @ 2018-05-29 11:54 Cein
阅读(516)
评论(0)
推荐(0)
2018年5月19日
asp.net core部署到iis中出现 HTTP Error 502.5 - Process Failure的问题
摘要: 环境是windows Server2012 问题的原因是缺少文件:api-ms-win-crt-runtimel1-1-0.dll, dotnet 启动程序失败。 可以先看官方的找个链接 https://docs.microsoft.com/en-us/aspnet/core/publishing/
阅读全文
posted @ 2018-05-19 17:26 Cein
阅读(1617)
评论(0)
推荐(0)
2018年5月17日
使用StreamReader和StreamWriter读取和写入文本文件
摘要: 1.读取文本 2.写入文本 原文:https://blog.csdn.net/sinat_32832727/article/details/53768116
阅读全文
posted @ 2018-05-17 15:33 Cein
阅读(501)
评论(0)
推荐(0)
2018年5月16日
C#中 websocket
摘要: C#中中主要是用Fleck,通过NuGet搜索安装就行 C#代码,控制台中program: html中 使用效果: 原文:https://www.cnblogs.com/sheseido/p/7047948.html
阅读全文
posted @ 2018-05-16 16:54 Cein
阅读(456)
评论(0)
推荐(0)
2018年5月11日
html中div居中
摘要: 鉴于每次都有人问css垂直居中,现在写个小例子。。。 效果是:
阅读全文
posted @ 2018-05-11 16:57 Cein
阅读(32554)
评论(4)
推荐(4)
2018年5月9日
.net core读取appsettings.json配置
摘要: 官方文档:href 在老版本的ASP.NET里,项目的全局配置一般都存在web.config里的appSettings里,只需要用ConfigurationManager.AppSettings[“Foo”]就可以把名为Foo的变量取出来。在ASP.NET Core里,访问配置文件的方式也有了很大变
阅读全文
posted @ 2018-05-09 11:52 Cein
阅读(940)
评论(0)
推荐(0)
2018年5月8日
.net core使用官方CookieAuthentication身份验证
摘要: 注入: 新建对应类 登录注销 需要验证的控制器中加入 例:
阅读全文
posted @ 2018-05-08 16:55 Cein
阅读(648)
评论(0)
推荐(0)
.net core判断是否是手机
摘要: 原文:stackoverflow
阅读全文
posted @ 2018-05-08 14:24 Cein
阅读(546)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
9
下一页
公告