Using directives function:
is to import namespaces so that you can use the StringBuilder class instead of System.Text.StringBuilder builder = new System.Text.StringBuilder (),
Ease of operation, enhanced readability.
Some instructions have the following meanings:
http://www.zybang.com/question/8ae2157cf831e325c6ceed8650f0045e.html?fr=iks&word=using+ System.configuration%3b&ie=gbk
The
- using System; The primary namespace, which contains all. NET base types and common types, such as object, such as String, and so on
- using System.Collections; Contains commonly used collection classes such as ArrayList
- using System.Configuration; configuration namespaces containing application configuration-related analogies such as ConfigurationManager
- using System.Data; The data namespace, which contains the most basic types of ADO, such as the
- using System.Linq, such as DbConnection, 3.5, the LINQ syntax introduced needs to provide the support class, mainly includes the enumerable extension method support class
- using System.Web; The core namespace required by ASP, including the underlying run environment class
- using System.Web.Security, such as httpruntime; ASP. NET in the role verification and security aspects of the class library, the more important is FormsAuthentication
- using System.Web.UI; ASP. NET Web page control requires a basic namespace, Contains all
- using System.Web.UI.HtmlControls such as control or important ipostbackeventhandler interfaces; HTML native controls, such as input runat= The server maps to one of the Inputxxx control classes in this polygon
- using System.Web.UI.WebControls; System.Web.UI.WebControls.WebParts; The space required for WebParts technology, but seldom with the
- using System.Xml.Linq; Linq2xml's primary namespace, which contains XDocument and XElement, the more important class
- using System.Data, introducing a data manipulation namespace that can be used such as the DataSet DataSet class
using directive meaning