
C#
ArLi2003
hello world.
展开
-
关于C# 的高效随机字符串
使用RNGCryptoServiceProvider 做种,可以在一秒内产生的随机数重复率非常的低,对于以往使用时间做种的方法是个升级,代码如下:using System;using System.Security.Cryptography;namespace ArLi.CommonPrj{ /// /// 随机密码 /// public sealed class RandomStr原创 2003-06-13 11:23:00 · 1483 阅读 · 0 评论 -
编程使用WMI 控制连接属性
using System;using System.Management;namespace ArLi.CommonPrj { public class ChangeIP { /// /// Build of ArLi 2003.6.3 /// public static readonly System.Version myVersion = new System.Versio原创 2003-06-17 09:26:00 · 1381 阅读 · 0 评论 -
装载外部DLL 全攻略
例DLL 文件内容如下:using System;using System.Windows.Forms;namespace ArLi.CommonPrj { public class ShowAboutBox { public static void ShowOn(Form fm) { MessageBox.Show("OK"); } }}编译后文件名叫 AboutBox.dl原创 2003-09-15 09:27:00 · 1145 阅读 · 1 评论