青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

C++ Programmer's Cookbook

{C++ 基礎(chǔ)} {C++ 高級} {C#界面,C++核心算法} {設(shè)計模式} {C#基礎(chǔ)}

Introducing Microsoft .NET(轉(zhuǎn))

Introduction

Ever since Microsoft released the Windows 95 Operating System, customers have made a high demand for more and more reliable products. Taking this into consideration, Microsoft introduced a plethora of new products within a span of six years. The products include a range of operating systems to Office-based applications, programming tools and environments, and so forth. In the meantime, Sun Microsystems' Java language and the Solaris operating system became much more popular among developers. Hence, many of the developers and companies began shifting their platforms to these powerful ranges of products. One more reason for this shift was attributed to the strong stability of Sun's products. In these circumstances, developers at Microsoft began to think of introducing a set of technologies that caters to all needs. In early 2000, Microsoft released its first beta product of its new .NET initiative. The product evoked added response and in 2001 they released Beta 2 of the same; the final release of the whole range of stuff culminated with the VSLive conference in early 2002. In this first article, you will be introduced with this new Microsoft .NET technology.

Microsoft .NET is one of the latest and newest technologies introduced by Microsoft Corporation. We now use them to connect to the Internet using a computer; the remote computer responds via a Web page and a collection of Web pages called Web sites. The concept in .NET is that these Web sites can integrate with other sites and services using standard protocols such as HTTP.

The Microsoft .NET Platform is comprised of four core components such as:

  • .NET building block services such as file storage, and calendar under the banner of Passport .NET.
  • .NET device software that will run on the latest Internet devices such as mobile phones, pagers, and so on.
  • .NET user experience such as integrating this technology to user-created documents (such as XML). For example, if you write a code snippet via XML using a .NET Language like C#, it will automatically create relevant XML documents.
  • .NET infrastructure, which includes:
    1. .NET Framework, which is comprised of the Common Language Runtime (CLR) and .NET Framework class libraries. You will learn more about CLR in Article 3.
    2. Microsoft Visual Studio.NET, such as Visual Basic .NET, Visual C# .NET, Visual C++ .NET with managed extensions, Visual FoxPro, and so forth.
    3. Highly reliable servers, called .NET Enterprise Servers and Microsoft Windows NET.

We can build robust, scalable, distributed applications with the help of .NET; the part that helps us to develop these applications is called the .NET Framework. The .NET Framework contains the CLR and the .NET Framework class libraries, also called base-class libraries.

All the .NET languages such as C-Sharp, Visual Basic .NET, and Visual C++ .NET have the .NET Framework class libraries built into them. The .NET class libraries also support file input and output, database operations, XML (eXtensible Markup Language), and SOAP (Simple Object Access Protocol). For example, you can develop XML pages by using C-Sharp language.

When someone talks about .NET development, you should understand that they are talking about the .NET Framework. It includes a runtime environment and a set of class libraries, which is being used by a new language called C-Sharp, abbreviated as C#. C# is more or less similar to C++, Java, and all other .NET languages. If you learn one language, it's easy to grasp others. Simply speaking, C-Sharp is a new language for developing custom solutions for Microsoft's .NET platform.

The runtime component that we discussed just now is also used by Visual Studio .NET. Visual Studio .NET provides us with a visual environment to design and develop .NET applications. Every language in Visual Studio .NET uses this runtime to execute its applications. Moreover, these languages convert their source code into an Intermediate Language (IL) upon compilation. We will discuss more about Intermediate Language in another article. Hence, you can use a module written using C-Sharp in a Visual Basic application. For example, you can design a user interface with Visual Basic .NET and write a DLL function using C-Sharp.

.NET Framework Process in Detail

Every programming language has its own processes for compiling and executing its source code. This article will look into these aspects of C#. You have to be thorough with this process, without which it's not possible to move ahead to other sessions.

The whole process is elaborated below and Figure 1 explains this process in a diagrammatic manner:

  • The programmer writes the source code using C# language conventions.
  • The source code is compiled using a C# Compiler (csc.exe).
  • The compiler converts the source code into an Intermediate Language, much like byte codes in Java. The IL can be either an executable (exe) or a Dynamic Link Library (DLL). Because the IL is generated by the C# compiler, it is called Managed Code. Managed Code can be executed only on a .NET-aware platform.
  • The compiled file unit is executed using the C# Interpreter. Upon execution, the code is checked for type safety. Moreover, the Just In Time (JIT) compiler compiles the unit into Managed Native Code and finally Common Language Runtime (CLR) produces the final output.

The final unit can be executed on any system that has Common Language Runtime installed on it. The C# compiler and interpreter will be installed at the time of installing the .NET Framework Software Development Kit (SDK). The SDK can be downloaded from Microsoft's Web site or can be obtained on a CD-ROM. You can find a list of related links at the end of this article.

The above-mentioned steps are applicable to all .NET languages. For instance, Visual Basic .NET also follows the same steps for its source code. It is due to this reason that .NET technology has become popular while still in the beta stage.

Diagrammatic Representation

The above-mentioned steps are outlined in Figure 1 for better understanding of the topic.

Figure 1—.NET framework Process

Terms Associated with Microsoft .NET

Common language runtime

Common Language Runtime, also called CLR, provides a universal execution engine for developers' code. It generates Simple Object Access Protocol (SOAP) when it makes remote procedure calls. SOAP is a protocol used to access .NET Web Services. CLR is independent and is provided as part of the .NET Framework. The main features of CLR are as follows:

  • Managed code
  • Automatic application installation
  • Effective memory management
  • Automatic garbage collection
  • Very high level of security while executing the programs

.NET framework class libraries

The .NET Framework class libraries work with any language under the Common Language Runtime environment. These libraries will be automatically installed at the time of running the .NET SDK Setup program. Therefore, if you are familiar with one .NET language, you can easily migrate to other .NET languages without spending much time learning new syntaxes and conventions.

You can develop three kinds of tasks using these class libraries. They are Windows Forms Programming (popularly called WinForms), Web Forms Programming, and Web Service Programming. Windows Forms are used to develop Windows-based graphical user interface applications. They are like standard exe applications in Visual Basic 6.0. All .NET languages use this concept of WinForms for developing Windows-based applications. Web Forms are used to design and develop Web-based applications. WebForms are used to create GUIs for ASP.NET applications. They can perform event handling and Validate Fields; they also can perform a lot of other functions. On the other hand, Web Services are components, which have no user interfaces and are consumed by Web applications. Web Services combine the power of HTTP and XML to generate SOAP, which is termed as a lightweight XML-based protocol. SOAP stands for Simple Object Access Protocol. A complete discussion on Web Services is beyond the scope of this article.

Figure 2 shows an outline of the .NET Framework hierarchy.

Figure 2—.NET framework Hierarchy

About Namespaces

At the top level of the hierarchy is the new concept of namespaces. Namespaces are a group of classes; from these classes are Methods. Basically, namespaces are containers for all classes and are classified into several categories, based on their functionalities. For example, if you need to add records to a database, you need to call several classes, methods, and properties of a namespace called System.Data. This is similar to packages in Java, where we use the Java.sql.* statement. Moreover, all C# programs should call the System namespace. This is the root of all other namespaces in the .NET framework.

Simply putting a statement such as System.Data in your source code will not suffice. You have to apply it by following certain conventions. All namespaces should be called in your programs by applying the keyword using. For example, to call the System namespace, you have to use a statement as shown below:

    using System;

You should end C# statements with a semicolon. Keep in mind that you cannot call Classes along with the using keyword. The using directive applies only to namespaces. Hence, the following code will result in a compilation error:

    using System.Console;

Console is one of the classes in the System namespace. We will use its WriteLine() method for outputting information to the console. However, you can create an alias, as shown in the following code fragment:

    using mysys = System.Console;

Then you have to apply the alias in your program, as shown below:

    mysys.writeLine("Hello C#");

Common Language Specification (CLS)

CLS is a set of rules that a language compiler must adhere to in order to create .NET applications that run in the CLR. If you are going to create a compiler for .NET, you have to adhere to the rules enumerated in the CLS; this enables us to create a club of CLS-compliant languages.

Each such compiler will have the following features:

  • Complete access to the .NET framework hierarchy
  • High level of interoperability with other compliant languages such as Visual Basic .NET, Visual C# .NET and, so forth

For example, a Visual Basic class can inherit from a C# Class and vice versa. You should note that the syntaxes and other programming structures differ a little bit from each of these languages. The only difference is that a developer well versed with a language such as C-Sharp can easily program in Visual Basic .NET or Visual C++ .NET without investing a lot or spending too long to learn a new language. Isn't it exiting?

Related Links

----------------------------------------------------

About the Author

Anand Narayanaswamy works as a freelance Web/Software developer and technical writer. He runs and maintains learnxpress.com, and provides free technical support to users. His areas of interest include Web development, Software development using Visual Basic, and in the design and preparation of courseware, technical articles, and tutorials. He can be reached at anand@learnxpress.com.

posted on 2005-11-15 16:57 夢在天涯 閱讀(661) 評論(0)  編輯 收藏 引用 所屬分類: C#/.NET

公告

EMail:itech001#126.com

導(dǎo)航

統(tǒng)計

  • 隨筆 - 461
  • 文章 - 4
  • 評論 - 746
  • 引用 - 0

常用鏈接

隨筆分類

隨筆檔案

收藏夾

Blogs

c#(csharp)

C++(cpp)

Enlish

Forums(bbs)

My self

Often go

Useful Webs

Xml/Uml/html

搜索

  •  

積分與排名

  • 積分 - 1816192
  • 排名 - 5

最新評論

閱讀排行榜

青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
      <noscript id="pjuwb"></noscript>
            <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
              <dd id="pjuwb"></dd>
              <abbr id="pjuwb"></abbr>
              国产毛片精品国产一区二区三区| 亚洲欧美日韩精品久久| 国产精品久久99| 牛牛国产精品| 亚洲一区二区三区777| 欧美激情一区二区三区高清视频| 在线观看日韩欧美| 国产精品日日摸夜夜摸av| 欧美a级一区| 久久久久www| 午夜在线a亚洲v天堂网2018| 日韩一级大片在线| 亚洲国产三级在线| 欧美高清在线一区二区| 久久久中精品2020中文| 亚洲免费视频观看| 亚洲视频图片小说| 一区二区三区日韩精品| 亚洲日本激情| 亚洲区在线播放| 亚洲国产欧美在线| 在线精品亚洲| 亚洲大片在线观看| 在线精品视频一区二区三四| 一区在线电影| 尤物九九久久国产精品的分类| 另类天堂av| 久久蜜桃资源一区二区老牛| 久久精品亚洲国产奇米99| 欧美一区二区黄| 羞羞答答国产精品www一本| 亚洲女人小视频在线观看| 亚洲丝袜av一区| 亚洲一区尤物| 欧美一区二区三区四区视频| 欧美一区二区视频97| 亚洲在线播放| 性欧美超级视频| 久久九九精品99国产精品| 欧美在线免费观看视频| 久久久99爱| 免费成人av资源网| 欧美另类视频在线| 欧美视频你懂的| 国产欧美日韩综合一区在线观看 | 欧美日韩国内| 欧美日韩国产999| 欧美日韩国产在线观看| 欧美午夜电影网| 国产美女精品免费电影| 国语精品一区| 亚洲精品少妇网址| 一区二区三区免费看| 午夜欧美精品久久久久久久| 久久精品盗摄| 欧美激情视频网站| 中文欧美在线视频| 欧美在线亚洲一区| 久久久亚洲影院你懂的| 欧美激情综合亚洲一二区| 欧美亚男人的天堂| 国产主播一区二区三区四区| 亚洲国产一区二区三区在线播| 国产视频一区二区在线观看| 一区视频在线看| 99精品国产在热久久婷婷| 欧美一区2区三区4区公司二百 | 久久久爽爽爽美女图片| 免费成年人欧美视频| 欧美亚州韩日在线看免费版国语版| 久久深夜福利免费观看| 免费看精品久久片| 国产精品国产精品| 亚洲第一精品电影| 亚洲视频一二区| 免费观看一区| 亚洲亚洲精品三区日韩精品在线视频 | 亚洲电影观看| 亚洲在线免费观看| 女同一区二区| 午夜精品久久久久久久99水蜜桃 | 很黄很黄激情成人| 亚洲精品欧美在线| 久久成人免费电影| 亚洲精品欧洲| 久久精品国产第一区二区三区最新章节| 亚洲欧美久久久| 卡通动漫国产精品| 国产精品一区2区| 亚洲精品字幕| 久久夜色精品国产欧美乱| 99热在线精品观看| 欧美va亚洲va香蕉在线| 国产午夜精品美女视频明星a级 | 亚洲激情一区二区三区| 欧美一级免费视频| 亚洲福利国产| 久久精品一区二区国产| 国产精品久久久久免费a∨大胸| 国产精品日韩欧美一区二区三区 | 亚洲国产日韩一区二区| 亚洲欧美日韩一区二区三区在线| 亚洲一区国产视频| 你懂的视频欧美| 性色av一区二区三区| 欧美日韩精品在线观看| 最新69国产成人精品视频免费| 亚洲美女淫视频| 蜜桃视频一区| 久久国产日韩| 国产亚洲精品bt天堂精选| 亚洲欧美成人| 亚洲网站视频福利| 欧美午夜大胆人体| 亚洲视频一区二区免费在线观看| 午夜精品福利电影| 夜夜爽夜夜爽精品视频| 欧美国产在线视频| 亚洲日本在线视频观看| 欧美福利视频| 麻豆精品视频在线观看| 亚洲福利在线观看| 老司机久久99久久精品播放免费| 老司机精品久久| 久久国产精品久久久久久久久久| 狼狼综合久久久久综合网 | 亚洲国产日韩美| 久久久xxx| 亚洲第一精品在线| 欧美本精品男人aⅴ天堂| 久久精品一区二区| 在线观看日韩av| 欧美国产日韩a欧美在线观看| 中文av字幕一区| 欧美午夜宅男影院在线观看| 这里只有精品视频在线| av成人福利| 国产精品网站视频| 久久精品女人| 快she精品国产999| 99精品久久久| 中国成人亚色综合网站| 国产乱人伦精品一区二区| 久久久国际精品| 久久裸体艺术| 日韩写真在线| 亚洲一区二区免费看| 国产一区二区三区高清| 欧美成人精品在线| 欧美久久综合| 性欧美videos另类喷潮| 久久精品国产亚洲a| 亚洲激情另类| 一本一本a久久| 国产一区二区三区成人欧美日韩在线观看 | 亚洲精品一区在线观看| 国产精品久久国产精麻豆99网站| 亚洲第一久久影院| 亚洲激情午夜| 国产伦一区二区三区色一情| 久久久之久亚州精品露出| 久久蜜桃精品| 在线综合+亚洲+欧美中文字幕| 亚洲电影免费观看高清完整版| 香蕉久久夜色精品国产使用方法| 欧美日本一区二区高清播放视频| 狠狠狠色丁香婷婷综合久久五月| 亚洲免费视频一区二区| 欧美一区二区视频97| 亚洲卡通欧美制服中文| 夜夜夜精品看看| 一区二区在线观看视频| 夜夜嗨av一区二区三区四季av | 亚洲六月丁香色婷婷综合久久| 久久久久久午夜| 亚洲激情一区| 亚洲欧美日韩精品在线| 亚洲国产一区二区视频| 亚洲欧美日韩国产一区二区| 亚洲国产成人精品女人久久久| 麻豆精品精华液| 国产精品v日韩精品v欧美精品网站| 日韩一级黄色大片| 欧美一区二区日韩一区二区| 亚洲精品国产精品国自产在线| 欧美成人在线免费观看| 国产精品乱人伦中文| 亚洲高清不卡| 国语自产精品视频在线看一大j8| 久久精品免费| 欧美日韩黄色大片| 欧美成人黑人xx视频免费观看 | 国产精品免费看片| 亚洲动漫精品| 国内精品久久久久伊人av| 日韩午夜激情电影| 亚洲精品久久在线| 久久久国产精品一区| 欧美在线网站| 国产精品你懂的在线欣赏|