• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
凡星*
博客园    首页    新随笔    联系   管理    订阅  订阅
1 2 下一页
2017年9月12日
log4net
摘要: <?xml version="1.0" encoding="utf-8" ?><configuration> <configSections> <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandle 阅读全文
posted @ 2017-09-12 17:36 凡星* 阅读(123) 评论(0) 推荐(0)
2017年8月29日
分页
摘要: var cityList = cList.Skip((currentpage - 1) * perPageCount).Take(perPageCount).ToList(); 阅读全文
posted @ 2017-08-29 17:36 凡星* 阅读(94) 评论(0) 推荐(0)
分页然后操作每页数据
摘要: page = records.totalCount / pageSize; page += (records.totalCount % pageSize) > 0 ? 1 : 0; for (int i = 1; i <= page; i++) { } 阅读全文
posted @ 2017-08-29 17:31 凡星* 阅读(194) 评论(0) 推荐(0)
2017年8月4日
C#多线程编程(1):线程的启动
摘要: 在实例化Thread的实例,需要提供一个委托,在实例化这个委托时所用到的参数是线程将来启动时要运行的方法。在.net中提供了两种启动线程的方式,一种是不带参数的启动方式,另一种是带参数的启动的方式。 不带参数的启动方式 带参数的启动方法 如果要在实例化线程时要带一些参数,就不能用ThreadStar 阅读全文
posted @ 2017-08-04 15:41 凡星* 阅读(1378) 评论(0) 推荐(0)
2017年8月1日
把一个项目a生成后放在另一个项目b使用(b项目是例子中的ScreenWebPage_Tool)
摘要: a项目属性 生成事件 后期生成事件命令行 xcopy /r /y $(TargetDir)*.* $(SolutionDir)ScreenWebPage_Tool\bin\Debug\*.* 阅读全文
posted @ 2017-08-01 11:07 凡星* 阅读(143) 评论(0) 推荐(0)
2017年7月24日
HttpContext.Current.Request.RawUrl是什么意思?
摘要: 原始 URL 定义为 URL 中域信息之后的部分。在 URL 字符串 http://www.contoso.com/articles/recent.aspx 中,原始 URL 为/articles/recent.aspx。 阅读全文
posted @ 2017-07-24 11:01 凡星* 阅读(1207) 评论(0) 推荐(0)
2017年7月11日
ExceptionHelper异常工具类
摘要: using System;using System.Collections.Generic;using System.Text; namespace JiaWel.Utilities{ public static class ExceptionHelper { //日志记录 private stat 阅读全文
posted @ 2017-07-11 14:59 凡星* 阅读(757) 评论(0) 推荐(0)
json转换工具类
摘要: using System;using System.Collections.Generic;using System.Text;using Newtonsoft.Json;using System.IO; namespace JiaWel.Utilities.Json{ public class J 阅读全文
posted @ 2017-07-11 14:55 凡星* 阅读(694) 评论(1) 推荐(0)
2017年7月7日
C#中AppDomain.CurrentDomain.BaseDirectory与Application.StartupPath的区别
摘要: C#中AppDomain.CurrentDomain.BaseDirectory与Application.StartupPath的区别 // 获取程序的基目录。System.AppDomain.CurrentDomain.BaseDirectory // 获取模块的完整路径。System.Diagn 阅读全文
posted @ 2017-07-07 11:18 凡星* 阅读(169) 评论(0) 推荐(0)
Guid.NewGuid()
摘要: System.Guid.NewGuid().ToString()全球唯一标识符 (GUID) 是一个字母数字标识符,用于指示产品的唯一性安装。在许多流行软件应用程序(例如 Web 浏览器和媒体播放器)中,都使用 GUID。 GUID 的格式为“xxxxxxxx-xxxx-xxxx-xxxx-xxxx 阅读全文
posted @ 2017-07-07 11:07 凡星* 阅读(419) 评论(0) 推荐(0)
1 2 下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3