当前位置: 首页 > news >正文

在线编辑图片加字seo教程下载

在线编辑图片加字,seo教程下载,数字化校园门户网站建设方案,广州白云发布通告.NET框架程序设计--NET框架开发平台的体系架构概览(FCL,CTS,CLS)(一)FCL(.NETFrameworkClassLibrary):.NET框架类库FCL包含了数以千计的类型,这些类型按照其功能用命名空间(Namespace)来组织。.NET的各种语言只是定义了一些规则,而我们在实际中的运用,则要在很大程度上去调用FC…

.NET框架程序设计--NET框架开发平台的体系架构概览(FCL,CTS,CLS)

(一)FCL(.NETFrameworkClassLibrary):.NET框架类库


FCL包含了数以千计的类型,这些类型按照其功能用命名空间(Namespace)来组织。

.NET的各种语言只是定义了一些规则,而我们在实际中的运用,则要在很大程度上去调用FCL中的类型。正是这些类型,使得我们可以运用更少的语言知识,来创建丰富的程序。

CLR和FCL支持我们可以开发以下几种应用程序:

(1)XML Web Services
(2)Web Forms
(3)Windows Forms
(4)Windows CUI(控制台应用程序)
(5)Windows服务(Windows SCM-Service Control Manager-所控制的服务程序)
(6)组件库


(二)CTS(Common Type System)通用类型系统

类型是CLR的基础,Microsoft定义了一个正式规范--CTS来描述类型的定义与行为。

CTS定义了类型以及类型成员的访问控制项。

CTS定义了类型的行为,使得语言与代码行为的分离:我们可以用C++定义自己的类型以及成员,也可以用C#,VB来定义,但是,类型的行为是绝对完全相同的,与语言无关的。


(三)CLS(Common Language Specification)公共语言规范

[参见相应目录例如:\Microsoft Visual Studio .NET 2003\SDK\v1.1\Tool Developers Guide\docs里面的Partition I Architecture.doc]

        要和其他对象完全交互,而不管这些对象是以何种语言实现的,对象必须只向调用方公开那些它们必须与之互用的所有语言的通用功能。为此定义了公共语言规范 (CLS),它是许多应用程序所需的一套基本语言功能。CLS 规则定义了通用类型系统的子集,即所有适用于公共类型系统的规则都适用于 CLS,除非 CLS 中定义了更严格的规则。CLS 通过定义一组开发人员可以确信在多种语言中都可用的功能来增强和确保语言互用性。CLS 还建立了 CLS 遵从性要求,这帮助您确定您的托管代码是否符合 CLS 以及一个给定的工具对托管代码(该代码是使用 CLS 功能的)开发的支持程度。

如果您的组件在对其他代码(包括派生类)公开的 API 中只使用了 CLS 功能,那么可以保证在任何支持 CLS 的编程语言中都可以访问该组件。遵守 CLS 规则、仅使用 CLS 中所包含功能的组件叫做符合 CLS 的组件。

[http://msdn.microsoft.com/library/chs/default.asp?url=/library/CHS/cpguide/html/cpconwritingcls-compliantcode.asp]


如果你想开发一门面向CLR编译器,CLS是必须遵循的。

clrcts.jpg

图中所示:
CLR/CTS提供了一个组特性,一些语言会提供这些特性的一个较大子集(IL提供全部特性)。而CLS是每种语言必须支持的一个最小特性集合。

None.gifusing System;
None.gif
//检测CLS兼容性
   //CLR会检测共有类型成员是否符合CLS特性
None.gif
[assembly:CLSCompliant(true)]
None.gif
//公有类型,不会报错误
None.gif
public class App()
ExpandedBlockStart.gifContractedBlock.gif
dot.gif{
InBlock.gif    
//错误:App.Abc()的返回类型与CLS不兼容
ExpandedSubBlockStart.gifContractedSubBlock.gif
    public UInt32 Abc()dot.gif{return 0;}
InBlock.gif    
//错误:大小写问题引起的CLS不兼容
ExpandedSubBlockStart.gifContractedSubBlock.gif
    public void abc()dot.gif{}
InBlock.gif    
//正确,因为是私有的
ExpandedSubBlockStart.gifContractedSubBlock.gif
    private UInt32 ABC()dot.gif{return 0;}
ExpandedBlockEnd.gif}



(四)CTS和CLS都是CLI(Common Language Infrastructure公用语言基础结构)的组成部分。

The basic elements of the CLI are:
·CL:I
·CTS
·CLS
·VES(Virtual Execution System),which executes managed code and lies between the code and the native operating system

And these elements's relation(CLI,CTS,CLS)
:

clictscls.gif

Each programming language that complies with the CLI uses a subset of the Common Type System that is appropriate for that language. Language-based tools communicate with each other and with the Virtual Execution System using metadata to define and reference the types used to construct the application. When a constructor is called to create an instance of an object, the VES uses the metadata to create instances of types, and to provide data type information to other parts of the infrastructure (remoting services, assembly downloading, security, etc.).
Languages and programming environments that do target the CLI—there are currently more than 20, and the list is growing—produce what is called managed code and managed data. The key to these is metadata—information associated with the code and data that describes the data, identifies the locations of references to objects, and gives the VES enough information to handle most of the overhead associated with older programming models. This overhead includes handling exceptions and security, and providing information to tools that can ensure memory safety. It may also include running on remote systems by creating proxies for the programmer, as well as managing object lifetime (called garbage collection).

Among the things the CLI specifies are the following:

  • The Common Type System

  • The Common Language Specification for publicly available calls

  • Metadata

  • Portable file format for managed code

  • The Common Intermediate Language (CIL) instruction set

  • Basic requirements of a Virtual Execution System

  • A programming framework built on top of all of this

The CLI also bridges the managed and unmanaged worlds. The CLI describes how, in the same program, managed modules can be run with unmanaged modules compiled in native code (machine code, specific to a given system). This interoperation is also crucial to describing how modules can communicate though the VES with the underlying operating systems.

come from 《Common Language Infrastructure Annotated Standard

转载于:https://www.cnblogs.com/caca/archive/2004/10/19/54398.html

http://www.lbrq.cn/news/2747881.html

相关文章:

  • 网站优化公司哪家效果好百度地址如何设置门店地址
  • wordpress的ajax好慢做优化的网站
  • 江西网站建设现在怎么做网络推广
  • 微信下载并登录seo技术分享博客
  • 电子商务网站开发的意义互联网营销师怎么做
  • 59网站一起做网店广州seo排名哪家有名
  • wordpress建站模版推广赚钱一个50元
  • 网站怎么申请支付宝google关键词分析
  • 买网站需要多少钱企业培训考试系统
  • 做淘宝相关网站湖南网站制作公司
  • 日照公司做网站淘宝流量助手平台
  • 网站建设推广邮件百度seo优
  • 东莞贸易公司寮步网站建设价格刷关键词要刷大词吗
  • 东莞网站建设类岗位廊坊网站seo
  • 做包装盒效果图网站优化大师下载安装
  • 雅安市住房和城乡建设局网站全专业优化公司
  • 阜宁专业做网站的公司全网营销推广靠谱吗
  • 电子商务网站建设与实践上机指导教程百度快照在哪里
  • 专业医疗建站营销型网站建设方案
  • 深圳制作网站软件百度seo网站优化服务
  • 给人做网站免费发外链平台
  • 徐州整站优化南宁seo推广外包
  • 网站左侧的导航是怎么做的西安seo网站排名
  • 石嘴山网站关于两学一做广告网页
  • 网站链接数广州网站制作实力乐云seo
  • wordpress英文站源码达州seo
  • 建个网站 费用bt蚂蚁
  • 专业的网站制作中心2024年3月新冠高峰
  • 浙江省建设厅网站地址关键信息基础设施安全保护条例
  • 网站平台搭建要多少钱seo优化易下拉排名
  • STM32单片机学习日记
  • 自由学习记录(85)
  • Linux系统分析 CPU 性能问题的工具汇总
  • 01数据结构-插入排序
  • C++第二十课:快递运费计算器 / 黑白配+石头剪刀布小游戏
  • 【JavaEE】多线程 -- 死锁问题