![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#
Jonathon
这个作者很懒,什么都没留下…
展开
-
c#中向上向下取整
Math.Ceiling()向上取整,Math.Floor()向下取整示例:d = 4.5678string result = Math.Ceiling(Convert.ToDecimal(d)).ToString();string result= Math.Ceiling(Convert.ToDouble(d)).ToString();result为5string r原创 2013-06-07 12:45:22 · 905 阅读 · 0 评论 -
(转载)C#语言之“string格式的日期时间字符串转为DateTime类型”的方法
方法一:Convert.ToDateTime(string)string格式有要求,必须是yyyy-MM-dd hh:mm:ss================================================方法二:Convert.ToDateTime(string, IFormatProvider)DateTime dt;DateTimeFormatInfo转载 2013-09-17 17:38:57 · 560 阅读 · 0 评论 -
修改C#项目名称
1.修改文件夹名2.修改*.sln文件名3.修改所有文件中的项目名(使用ctrl+H替换所有的ProgramModule为SOP)4.修改项目名称5.修改项目属相中的程序集名称和默认命名空间。6.复制项目文件夹为新的项目名称,同时在项目中更改项目引用到新的项目文件夹。7.修改AssemblyInfo.cs文件中的配置信息[assembly: AssemblyTitle(原创 2013-11-07 18:06:23 · 921 阅读 · 0 评论 -
apache activeMQ 5.9 在unix solaris11上的安装
最近在使用activeMQ,发现在C#下用最新版本的Apache.NMS.ActiveMQ-1.6.1-bin.zip连接activeMQ 5.3.2总是报内存溢出,所以打算使用新版的activeMQ 5.9试试,安装过程如下:1.下载 activemq5.9.0http://activemq.apache.org/activemq-590-release.html2.解压到一个uni原创 2013-11-29 18:13:51 · 849 阅读 · 0 评论 -
GIT安装
源码管理工具变更为GitHubwindows7 32位 + vs2010安装Git及插件安装Git1.安装Git ,路径: https://git-for-windows.github.io/2.生成SSH文件开始没有,直接调用ssh-keygen -t rsa -b 4096 -C "zhengjn@cicc.com.cn"打开C:\Users\zhengjn\.ssh\原创 2015-09-17 22:10:41 · 433 阅读 · 0 评论 -
GitExt 如何应用到VS2013中
1.Git安装安装顺序: Git-2.6.3-64-bit.exe GitExtensions-2.48.05-SetupComplete.msi GitSccProvider.vsix(可以通过VS自己的扩展功能来获取)2.获取公钥秘钥,并关联Git服务器a.打开需要从Git上获取文件的文件夹,右键Git Bash Here,然后输入以下内容:原创 2015-11-26 17:18:20 · 1488 阅读 · 0 评论