摘要: 在C#项目中添加引用Microsoft.VisualBasic.dll, 可以在C#程序中直接使用VB.NET中丰富的函数
阅读全文
摘要: Here's a nice challange for people who THINK they know how to read other people's code...
It's a small C# program. I know, I know, it doesn't look like it's gonna get compiled, but believe me, it does. Try to guess this program's output, then try to run it. You'll be amazed to see what it does!
阅读全文
摘要: 其实.NET Framework已经提供实现DES算法的类: System.Security.Cryptography.DESCryptoServiceProvider。之所以要把一个Delphi写的DES算法翻译成C#,是因为网友espnstar想用Delphi加密,C#解密。[
原文]
阅读全文
摘要: 模拟Visual Basic的ReDim语句,C#实现,仅支持1维数组。
阅读全文
摘要: 用C#程序设置屏幕分辨率及刷新频率,程序中必须检查,不允许设置到显示器不支持的模式上,以免有可能损坏显示器(我所看到的前人的程序都未作检查)。解决方案: 用API枚举出当前显示器所支持的分辨率及刷新频率,填入列表框,然后再从中选择进行设置。
阅读全文
摘要: For years, we gave the same programming test to every developer. It was a straightforward test that required no setup or external knowledge from manuals. The candidates were asked to write a program that could print its source to the screen exactly, without performing any file input.
阅读全文