摘要:
先看下面的代码:private void button1_Click(object sender, System.EventArgs e) { TestObj obj = new TestObj(); obj.WriteSomethin( "text" ); GC.Collect(); GC.WaitForPendingFinalizers(); doStuff(); } ... 阅读全文
摘要:
http://www.microsoft.com/windows/sfu 阅读全文
摘要:
我以前在.NET Framework 1.0上的一个程序移植到1.1后,Request.ServerVariables["LOGON_USER"]得到的全是乱码,用英文用户名却没问题,我研究了很长时间,也没找出原因。我想,在.NET类库中有没有提供其他方法获取用户登录名,后来我找到了一种很简单的方法: WindowsIdentity userid = WindowsIdentity... 阅读全文