ANSI ISO IEC 23271-2003 Information technology Common Language Infrastructure《信息技术.INCITS采用通用语言结构》.pdf
《ANSI ISO IEC 23271-2003 Information technology Common Language Infrastructure《信息技术.INCITS采用通用语言结构》.pdf》由会员分享,可在线阅读,更多相关《ANSI ISO IEC 23271-2003 Information technology Common Language Infrastructure《信息技术.INCITS采用通用语言结构》.pdf(522页珍藏版)》请在麦多课文档分享上搜索。
1、Adopted by INCITS (InterNational Committee for Information Technology Standards) as an American National Standard.Date of ANSI Approval: 12/24/2003Published by American National Standards Institute,25 West 43rd Street, New York, New York 10036Copyright 2003 by Information Technology Industry Council
2、 (ITI).All rights reserved.These materials are subject to copyright claims of International Standardization Organization (ISO), InternationalElectrotechnical Commission (IEC), American National Standards Institute (ANSI), and Information Technology Industry Council(ITI). Not for resale. No part of t
3、his publication may be reproduced in any form, including an electronic retrieval system, withoutthe prior written permission of ITI. All requests pertaining to this standard should be submitted to ITI, 1250 Eye Street NW,Washington, DC 20005.Printed in the United States of AmericaReference numberISO
4、/IEC 23271:2003(E)ISO/IEC 2003INTERNATIONAL STANDARD ISO/IEC23271First edition2003-04-01Information technology Common Language Infrastructure Technologies de linformation Infrastructure commune de langage ISO/IEC 23271:2003(E) PDF disclaimer This PDF file may contain embedded typefaces. In accordanc
5、e with Adobes licensing policy, this file may be printed or viewed but shall not be edited unless the typefaces which are embedded are licensed to and installed on the computer performing the editing. In downloading this file, parties accept therein the responsibility of not infringing Adobes licens
6、ing policy. The ISO Central Secretariat accepts no liability in this area. Adobe is a trademark of Adobe Systems Incorporated. Details of the software products used to create this PDF file can be found in the General Info relative to the file; the PDF-creation parameters were optimized for printing.
7、 Every care has been taken to ensure that the file is suitable for use by ISO member bodies. In the unlikely event that a problem relating to it is found, please inform the Central Secretariat at the address given below. ISO/IEC 2003 All rights reserved. Unless otherwise specified, no part of this p
8、ublication may be reproduced or utilized in any form or by any means, electronic or mechanical, including photocopying and microfilm, without permission in writing from either ISO at the address below or ISOs member body in the country of the requester. ISO copyright office Case postale 56 CH-1211 G
9、eneva 20 Tel. + 41 22 749 01 11 Fax + 41 22 749 09 47 E-mail copyrightiso.org Web www.iso.org Published in Switzerland ii ISO/IEC 2003 All rights reservedISO/IEC 23271:2003(E) ISO/IEC 2003 All rights reserved iii Common Language Infrastructure (CLI) Partitions I to V Partition I: Concepts and Archit
10、ecture Partition II: Metadata Definition and Semantics Partition III: CLI Instruction Set Partition IV: Profiles and Libraries Partition V: Annexes ISO/IEC 23271:2003(E) iv ISO/IEC 2003 All rights reserved ISO/IEC 23271:2003(E) ISO/IEC 2003 All rights reserved v Common Language Infrastructure (CLI)
11、Partition I: Concepts and Architecture ISO/IEC 23271:2003(E) ISO/IEC 2003 All rights reserved vii Table of Contents 1 Scope 1 2 Conformance 2 3 References 3 4 Conventions 5 4.1 Organization 5 4.2 Informative Text 5 4.3 Hyperlinks 5 5 Glossary 6 6 Overview of the Common Language Infrastructure 21 6.1
12、 Relationship to Type Safety 21 6.2 Relationship to Managed Metadata-driven Execution 22 6.2.1 Managed Code 22 6.2.2 Managed Data 23 6.2.3 Summary 23 7 Common Language Specification (CLS) 24 7.1 Introduction 24 7.2 Views of CLS Compliance 24 7.2.1 CLS Framework 24 7.2.2 CLS Consumer 24 7.2.3 CLS Ext
13、ender 25 7.3 CLS Compliance 25 7.3.1 Marking Items as CLS-Compliant 26 8 Common Type System 27 8.1 Relationship to Object-Oriented Programming 29 8.2 Values and Types 29 8.2.1 Value Types and Reference Types 29 8.2.2 Built-in Types 29 8.2.3 Classes, Interfaces and Objects 30 8.2.4 Boxing and Unboxin
14、g of Values 31 8.2.5 Identity and Equality of Values 31 ISO/IEC 23271:2003(E) viii ISO/IEC 2003 All rights reserved 8.3 Locations 32 8.3.1 Assignment Compatible Locations 32 8.3.2 Coercion 32 8.3.3 Casting 33 8.4 Type Members 33 8.4.1 Fields, Array Elements, and Values 33 8.4.2 Methods 33 8.4.3 Stat
15、ic Fields and Static Methods 34 8.4.4 Virtual Methods 34 8.5 Naming 34 8.5.1 Valid Names 34 8.5.2 Assemblies and Scoping 35 8.5.3 Visibility, Accessibility, and Security 36 8.6 Contracts 38 8.6.1 Signatures 39 8.7 Assignment Compatibility 42 8.8 Type Safety and Verification 42 8.9 Type Definers 42 8
16、.9.1 Array Types 43 8.9.2 Unmanaged Pointer Types 44 8.9.3 Delegates 44 8.9.4 Interface Type Definition 45 8.9.5 Class Type Definition 46 8.9.6 Object Type Definitions 47 8.9.7 Value Type Definition 49 8.9.8 Type Inheritance 50 8.9.9 Object Type Inheritance 50 8.9.10 Value Type Inheritance 50 8.9.11
17、 Interface Type Inheritance 50 8.10 Member Inheritance 51 8.10.1 Field Inheritance 51 8.10.2 Method Inheritance 51 8.10.3 Property and Event Inheritance 51 8.10.4 Hiding, Overriding, and Layout 51 8.11 Member Definitions 52 8.11.1 Method Definitions 53 8.11.2 Field Definitions 53 8.11.3 Property Def
18、initions 53 ISO/IEC 23271:2003(E) ISO/IEC 2003 All rights reserved ix 8.11.4 Event Definitions 54 8.11.5 Nested Type Definitions 55 9 Metadata 56 9.1 Components and Assemblies 56 9.2 Accessing Metadata 56 9.2.1 Metadata Tokens 56 9.2.2 Member Signatures in Metadata 57 9.3 Unmanaged Code 57 9.4 Metho
19、d Implementation Metadata 57 9.5 Class Layout 57 9.6 Assemblies: Name Scopes for Types 58 9.7 Metadata Extensibility 59 9.8 Globals, Imports, and Exports 60 9.9 Scoped Statics 60 10 Name and Type Rules for the Common Language Specification 61 10.1 Identifiers 61 10.2 Overloading 61 10.3 Operator Ove
20、rloading 62 10.3.1 Unary Operators 62 10.3.2 Binary Operators 63 10.3.3 Conversion Operators 64 10.4 Naming Patterns 64 10.5 Exceptions 65 10.6 Custom Attributes 65 11 Collected CLS Rules 67 12 Virtual Execution System 70 12.1 Supported Data Types 70 12.1.1 Native Size: native int, native unsigned i
21、nt, O and for example: “see Partition IV”, “see Section 8.7”, “see Chapter 22”, and “see clause 7.5.3”. Some tables also contain hyperlinked section number references, such as 5.10 and 6.7. End informative text ISO/IEC 23271:2003(E) 6 ISO/IEC 2003 All rights reserved 5 Glossary For the purpose of th
22、is International Standard, the following definitions apply. They are collected here for ease of reference, but the definition is presented in context elsewhere in the specification, as noted. Definitions enclosed in square brackets were not extracted from the body of the standard. The remainder of t
23、his section and its subsections contain only informative text Term Description Pt Ch Section Abstract Only an abstract object type is allowed to define method contracts for which the type or the VES does not also provide the implementation. Such method contracts are called abstract methods I 8.9.6.2
24、 Concreteness Accessibility of members A type scopes all of its members, and it also specifies the accessibility rules for its members. Except where noted, accessibility is decided based only on the statically visible type of the member being referenced and the type and assembly that is making the r
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
10000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- ANSIISOIEC232712003INFORMATIONTECHNOLOGYCOMMONLANGUAGEINFRASTRUCTURE 信息技术 INCITS 采用 通用 语言 结构 PDF

链接地址:http://www.mydoc123.com/p-437235.html