Programming Life

.NET World

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

摘要: Type Constructor Performance类型构造器中两种语义precise和before-field-init的分析 阅读全文
posted @ 2007-09-13 01:40 许文科 阅读(251) 评论(0) 推荐(0) 编辑

2008年7月6日

摘要: 先看下面的代码: 1ref class Point 2{ 3public: 4 int X; 5 int Y; 6}; 7 8void main() 9{ 10 Point^ p1 = gcnew Point(); 11 p1->X = 1; 12 Point p2; 13 p2.X = 2; 14} 我们知道在.NET中,值类型与引用类型的区... 阅读全文
posted @ 2008-07-06 15:14 许文科 阅读(502) 评论(0) 推荐(0) 编辑

摘要: 先看下面的C#代码,能编译通过吗?为什么? using System; public class Component { private int context; public Component(Component component) { component.context = 1; } } 答案是可以的... 阅读全文
posted @ 2008-07-06 14:05 许文科 阅读(554) 评论(1) 推荐(0) 编辑

摘要: 这里列举了一些我认为C++/CLI编程的需要知道一些基本概念 非安全代码(Unsafe code):一般而言,用VB.NET, C#编译成的代码是安全代码,这里的安全是指编译器本身的能力而言。比如对同样的一个C#程序,如果使用/unsafe选项进行编译的话,会产生如下的directive: .assembly assemblyNameXXX { // 涉及到安全许可时,忽略代码校验 .perm... 阅读全文
posted @ 2008-07-06 11:51 许文科 阅读(2819) 评论(2) 推荐(0) 编辑

摘要: C++中的enum与.net中的enum类型比较 阅读全文
posted @ 2008-07-06 11:17 许文科 阅读(3750) 评论(7) 推荐(0) 编辑

2007年6月28日

摘要: 1) Install svn-1.4.3-setup.exe2) Copy SVNService.exe to Subversion\bin directory3) Install TortoiseSVN client4) Create Database- Use command prompt:: I want to create the db into f:\temp\1 directorysv... 阅读全文
posted @ 2007-06-28 22:25 许文科 阅读(199) 评论(0) 推荐(0) 编辑

2007年4月24日

摘要: 强命名程序集的一个好处是防篡改。假如我有一个程序集MyDll.dll,如果我用我自己的私钥进行签名将程序集中的内容进行哈希处理,其他人如果不知道我的私钥的话,就不能篡改我的这个程序集进行某些恶意的行为。但对于一些大型程序的开发,私钥一般是不公开的,当然,与它匹配的公钥是公开的,可以自由分发。那么如何确保开发人员在开发的过程中使用强命名程序集(如希望将其放到GAC中,因此必然得是强命名程序集)。延迟... 阅读全文
posted @ 2007-04-24 23:33 许文科 阅读(1900) 评论(1) 推荐(0) 编辑

2007年4月21日

摘要: http://www.cnblogs.com/Wagner/articles/722065.html 阅读全文
posted @ 2007-04-21 14:13 许文科 阅读(407) 评论(0) 推荐(0) 编辑