C # Introduction to common class libraries (2)

Source: Internet
Author: User

System
Common basic types are almost under this namespace. For example, string, Int16, int32, object, type conversion, and numerical calculation. In addition, there are class consoles.

 

System. IO
IO is Input and Output. the reading of all files can be regarded as input, and the writing is output. therefore, all file-related operations are in this namespace, including reading, writing, creating, copying, and permission control. common classes include File, Directory, Path, StreamReader, and StreamWriter.

 

System. IO. Compression
File compression and decompression, mainly Zip files.

 

System. Text
To save a file on a disk, you must specify an encoding format. ASNI is used in English, but there are still other texts, such as Chinese characters and Japanese letters. finally in order to unified processing of different text, the entire unicode, what UTF-8, UTF-16 and so on. anyway, classes related to encoding are almost under this namespace. in addition, StringBuilder is also used here.

 

System. Text. ReularExpressions
There are not many classes below, all of which are related to regular expressions.

 

System. Collections, System. Collections. Generis
Collections refers to a set. When we used to learn data structures, linear tables, queues, hash tables, and dictionaries are a set. these data structure class libraries are ready for you, just in the namespace System. under Collections. and System. collections. generis is the generic type of the set.

 

System. Reflection
Classes related to reflection are all here. For example, common class Assembly

 

System. Threading
All thread-related classes are in this namespace.

 

Microsoft. Win32
The classes related to Registry operations are all in this namespace, such as common Registry and RegistryKey

 

System. Media

There are three types of SoundPlayer (control .wav files), SytemSound, and SytemSounds control system sound.

 

System. Net, System. Net. Sockets
System. net is a network-related class, such as HttpListener and IPAddress. and System. net. although Sockets is also related to the network, it is mainly related to sockets (socket). In computer networks, we often use Sockets.

 

System. Net. Mail
Email-related classes.

 

System. Runtime. Serialization. Formatters. Binary, System. Xml. Serialization

The former is serialized to binary, and the latter is serialized to xml format.

 

 

. Net 3.0 and. Net3.5
The newly added version is backward compatible, and all the class libraries in. Net2.0 are still in it and are the main part. The new version only adds some class libraries.

. Net 3.0 mainly adds the WPF and Workfow functions. All the dll with a Presentation, the class libraries inside are basically related to WPF.

Windows Presentation Foundation (WPF) is a user interface framework. It is cooler than WinForm pages.

The words "Workflow" are naturally related to workflow (also called WF). WF provides support for enterprise business processes and is convenient to implement ERP systems.

 

. Net3.5 mainly added a new version of Linq.

Namespace Sytem. Linq under the assembly System. Core

Both the Assembly Sytem. Xml. Linq and the assembly System. Data. Linq are class libraries related to Linq.

 

 

 

 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.