随笔分类 -  C#

摘要:Find查询是MongoDB中最基本也是最常用的语法。使用起来也非常简单。下面列出了Find的一些基本操作。> db.news.find() //select * from [news]{ "_id" : 10001, "count" : 1, "news" : "i hava a dream", "time" : ISODate("2011-09-05T13:40:58.034Z") }{ "_id" : 10002, "count&qu 阅读全文
posted @ 2011-09-06 10:27 yoolo wu 阅读(24282) 评论(1) 推荐(2) 编辑
摘要:MongoDB插入,批量插入,插入原理,C#驱动 阅读全文
posted @ 2011-08-29 23:08 yoolo wu 阅读(49897) 评论(10) 推荐(2) 编辑
摘要:1. 获取当前进程的完整路径,包含文件名(进程名)。this.GetType().Assembly.Location;返回格式: X:\xxx\xxx\xxx.exe2. 获取新的 Process 组件并将其与当前活动的进程关联的主模块的完整路径,包含文件名(进程名)。System.Diagnostics.Process.GetCurrentProcess().MainModule.FileNam... 阅读全文
posted @ 2010-07-07 09:33 yoolo wu 阅读(717) 评论(0) 推荐(1) 编辑
摘要:public class test { public static int cc = 0; static test() { cc++; } public test() { cc++; } }test t1 =new test1();test t2 =new test2();输出:cc:3分析:1:静态构造函数既没有访问修饰符,也没有参数。因为是.NET调用的,所以像public和private等修... 阅读全文
posted @ 2010-04-29 20:27 yoolo wu 阅读(316) 评论(0) 推荐(1) 编辑