生成不重复随机数
摘要:public static void getRand()
{
StreamWriter sw = new StreamWriter(@"C:\Documents and Settings\Administrator\桌面\1.txt");
Random rd = new Random();
ArrayList intTempArr = new ArrayList();
int[] intArr = new int[1000000];
阅读全文
posted @
2012-04-21 22:53
上校
阅读(286)
推荐(0) 编辑
.Net Framework 与 SQL Server 2005 混乱的时间最大最小值
摘要:參考:
C# DateTime.MinValue is not the same as SqlDateTime.MinValue Caution When passing Null or DateTime into Store Procedure
這其實也是我一直跟很多人講過的一個觀念:就憑我們的資質,我們遇到的 IT 技術問題絕大多數不可能在這世界上第一次遇到的。換句話說,絕大多數的情況下,我們所遇到的 IT 技術問題,在這世界上某個人一定遇到並且已經解決了!簡言之,善用關鍵字搜尋,解決問題。
Net Framewrok 中,
DateTime.MinValue => 0001/01/01 00:00:00
SqlDateTime.MinValue.Value => 1753/01/01 00:00:00
阅读全文
posted @
2012-04-05 17:31
上校
阅读(678)
推荐(0) 编辑