1、首先总结一下Trace与Debug类的特性: A、用法基本相同,只是Debug是在Debug本版本下使用,在Release版本下不会生成代码,而Trace在默认情况下是打开的,也就是说在Debug
[更多…]-
c# Trace Debug
-
[转] – C#中删除任意控件任意事件的事件列表的实现
有时候遇到动态挂接事件的时候,可能想删除以前挂接的事件。因为如果不删除,事件是会重复挂接的。 这里给出两种实现方法,各有优缺点。 1。利用反射机制实现 &nbs
[更多…] -
.NET Win HTML Editor Control – 跳过License Key
首先,请参考http://blog.163.com/xhy_cy/blog/static/104976232011572532229/(内容是转发的) 1、删除.publickey。应该
[更多…] -
[转] – MSIL 教程
Microsoft Intermediate Language (MSIL) is a language used as the output of a number of compilers (C#
[更多…] -
c# 反射一个internal static class中的field
try { Assembly assembly = Assembly.GetAssembly(typeof(SpiceLogic.WinHTMLEditor.HT
[更多…] -
[转] – C#长整型时间与java长整型时间转换
最近在有一个解析并转发病毒软件日志的活,这个软件用的是SQLite嵌入式数据库存储病毒日志。查询病毒记录后,我发现它用长整型存
[更多…] -
[转] – C#编写COM组件
1、新建一个类库项目 2、将Class1.cs改为我们想要的名字 问是否同时给类改名,确定 3、修改Properties目录下面的AssemblyInfo.cs ComVisible属性设置为True
[更多…] -
.net 32位 / 64位判断
IntPtr.Size 属性值 此平台上的指针或句柄的大小,按字节计。此属性的值在 32 位平台上为 4,在 64 位平台上为 8。
[更多…] -
Command Identifiers
Command Identifiers .NET Framework 3.0 Command identifiers specify an action to take on the given ob
[更多…] -
MSHTML: clear the undo / redo buffer of MSHTML
To clear the undo stack of MSHTML control you can use undo manager service. When enabling and disabl
[更多…]