Utilites
文章平均质量分 62
jswxharry
这个作者很懒,什么都没留下…
展开
-
基于System.Security.Cryptography.SymmetricAlgorithm 的私钥加密解密帮助类
public class SymetricAlgrithmCryptographyHelper where ST : SymmetricAlgorithm, new() where ET : Encoding, new() { /// /// KeySault is to fill the key if input原创 2013-03-27 18:38:01 · 1184 阅读 · 0 评论 -
基于Gzip的压缩解压缩帮助类
public class MsgCompressHelper { public static byte[] Compress(string str, Encoding encoding) { return Compress(ConvertStringToBytes(str, encoding));原创 2013-03-28 09:45:29 · 543 阅读 · 0 评论 -
DOS 文件名时间戳的生成
set hour=%time:~0,2%if "%hour:~0,1%" == " " set hour=0%hour:~1,1%echo hour=%hour%set min=%time:~3,2%if "%min:~0,1%" == " " set min=0%min:~1,1%echo min=%min%set secs=%time:~6,2%if "%secs:原创 2013-10-07 10:31:28 · 2775 阅读 · 1 评论 -
C# 中时区的查讯和转换
我们会需要把 local 时间转换成某一时区的时间, 这里用.Net 的内置方法来实现: ///UTC 时间 DateTime dt = TimeZoneInfo.ConvertTimeToUtc(DateTime.Now, TimeZoneInfo.Local); Console.WriteLine(dt.ToString原创 2014-01-15 13:25:19 · 3394 阅读 · 0 评论 -
浮点数据的精度计算和验证
之前系统出现了一个Oracle DB抛出的异常, ORA-01438: value larger than specified precisionallowed for this column经过测试, 这个异常是因为 输入大数字, 99999999999999999999, 精度超出DB 设置 Numeric(25,6)以下研究了java如何来验证数据位数做数据检验: pri原创 2014-02-13 10:44:34 · 1311 阅读 · 0 评论 -
Numeric RegEx Mask
\d+\.?\d+原创 2014-07-18 10:48:33 · 1078 阅读 · 0 评论 -
ILSpy 开源的.Net代码反编译软件
http://ilspy.net/翻译 2014-10-26 14:33:56 · 671 阅读 · 0 评论