常用命名空间
2012-08-05 22:32
225 查看
1. using System.Collections;
有ArrayList;Hashtable;Stack;Queue;DictionaryEntry;等集合
2. using System.Reflection;
获取Assembly 的属性值
3. using System.Data;
访问和操作数据库等类
4. using System.Drawing;
图像,画笔,和gdi
5. using System.IO;
对文件、文件夹的操作
6. using System.Media;
播放wav和系统wav文件
7. using System.Net;
操作网络
8. using System.Runtime;
运行时的各种信息
9. using System.Security;
用于安全和加密
10.using System.Text;
各种编码方式和正则表达式
11.using System.Threading;
多线程
12.using System.Web;
asp.net的web编程
13.using System.Windows.Forms;
各种控件
14.using System.Xml;
操作xml文件
常用类
15. Microsoft.Win32.Registry
操作注册表
16. System.Runtime.InteropServices.Marshal
操作内存
17. System.Enum;
操作枚举
18. System.DateTime;
操作时间
19. System.Math;
操作数字类
20. System.Runtime.Serialization
用于序列化和反序列化
21. System.Windows.Forms.Clipboard;
操作剪贴板
22. DateTime.IsLeapYear("1990");
判断是否为闰年
23. System.Text.RegularExpressions.Regex.IsMatch("字符串","正则表达式");
判断正则,返回bool型
24. Console.CapsLock;
获取caps_lock键,是否按下
25. System.Environment;
System.Windows.Forms.SystemInformation;
获取系统信息
26. System.Array;
操作数组,排序,倒序等
27. System.Windows.Forms.Screen s = Screen.PrimaryScreen;
获取显示器信息
28. System.Guid.NewGuid();
获取新的guid
29. System.Random r = new Random();
r.Next();
产生随机数
30. System.Drawing.Point p = new Point(100,200);
System.Drawing.Size s = new Size(500,600);
位置和大小
31. System.Threading.Thread.Sleep(3000);
延迟三秒
32. System.Drawing.Point p = MousePosition;
获取当前鼠标坐标
有ArrayList;Hashtable;Stack;Queue;DictionaryEntry;等集合
2. using System.Reflection;
获取Assembly 的属性值
3. using System.Data;
访问和操作数据库等类
4. using System.Drawing;
图像,画笔,和gdi
5. using System.IO;
对文件、文件夹的操作
6. using System.Media;
播放wav和系统wav文件
7. using System.Net;
操作网络
8. using System.Runtime;
运行时的各种信息
9. using System.Security;
用于安全和加密
10.using System.Text;
各种编码方式和正则表达式
11.using System.Threading;
多线程
12.using System.Web;
asp.net的web编程
13.using System.Windows.Forms;
各种控件
14.using System.Xml;
操作xml文件
常用类
15. Microsoft.Win32.Registry
操作注册表
16. System.Runtime.InteropServices.Marshal
操作内存
17. System.Enum;
操作枚举
18. System.DateTime;
操作时间
19. System.Math;
操作数字类
20. System.Runtime.Serialization
用于序列化和反序列化
21. System.Windows.Forms.Clipboard;
操作剪贴板
22. DateTime.IsLeapYear("1990");
判断是否为闰年
23. System.Text.RegularExpressions.Regex.IsMatch("字符串","正则表达式");
判断正则,返回bool型
24. Console.CapsLock;
获取caps_lock键,是否按下
25. System.Environment;
System.Windows.Forms.SystemInformation;
获取系统信息
26. System.Array;
操作数组,排序,倒序等
27. System.Windows.Forms.Screen s = Screen.PrimaryScreen;
获取显示器信息
28. System.Guid.NewGuid();
获取新的guid
29. System.Random r = new Random();
r.Next();
产生随机数
30. System.Drawing.Point p = new Point(100,200);
System.Drawing.Size s = new Size(500,600);
位置和大小
31. System.Threading.Thread.Sleep(3000);
延迟三秒
32. System.Drawing.Point p = MousePosition;
获取当前鼠标坐标
相关文章推荐
- DotNetNuke.Entities.Users 命名空间下的常用类总结
- C#学习常用命名空间【1000】---System.Reflection 之MethodBase(方法库类)
- DNN命名空间与常用API
- 常用命名空间位置
- C#学习常用的命名空间---System.Data.Linq(语言集成查询)
- asp.net常用的命名空间及含义
- Visual Studio 2008 常用命名空间
- spring 常用的一些命名空间配置方式及作用
- C# 常用的命名空间及作用
- DotNetNuke.Security 命名空间下常用类总结
- C#学习常用命名空间【1000】---System.Reflection 之MethodInfo(方法信息类)
- 基于C#的MapInfo开发时常用的命名空间总结
- C#开发常用的命名空间分项
- Yii框架中常用路径、命名空间、meta信息
- .NET Framework 常用命名空间总结
- C#文件处理-System.IO 命名空间常用的类
- 生成类中常用的引用命名空间
- asp.net常用的引用命名空间的含义
- C#常用命名空间和类
- Net常用命名空间和类介绍