ANSI ISO IEC 23270-2003 Information technology C Sharp Language Specification (Adopted by INCITS)《信息技术.INCITS采用C Sharp 语言规范》.pdf
《ANSI ISO IEC 23270-2003 Information technology C Sharp Language Specification (Adopted by INCITS)《信息技术.INCITS采用C Sharp 语言规范》.pdf》由会员分享,可在线阅读,更多相关《ANSI ISO IEC 23270-2003 Information technology C Sharp Language Specification (Adopted by INCITS)《信息技术.INCITS采用C Sharp 语言规范》.pdf(486页珍藏版)》请在麦多课文档分享上搜索。
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 23270:2003(E)ISO/IEC 2003INTERNATIONAL STANDARD ISO/IEC23270First edition2003-04-01Information technology C# Language Specification Technologies de linformation Spcification du langage C# ISO/IEC 23270:2003(E) PDF disclaimer This PDF file may contain embedded typefaces. In accordance with Adobe
5、s 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 licensing policy.
6、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. Every care
7、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 publication m
8、ay 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 Geneva 20 Tel
9、. + 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 23270:2003(E) ISO/IEC 2003 All rights reserved iii Table of Contents 1. Scope. 1 2. Conformance . 3 3. References 5 4. Definitions 7 5. Notational con
10、ventions 9 6. Acronyms and abbreviations . 11 7. General description. 13 8. Language Overview 15 8.1 Getting started . 15 8.2 Types . 16 8.2.1 Predefined types17 8.2.2 Conversions 19 8.2.3 Array types20 8.2.4 Type system unification21 8.3 Variables and parameters. 22 8.4 Automatic memory management.
11、 25 8.5 Expressions 27 8.6 Statements 28 8.7 Classes . 31 8.7.1 Constants.32 8.7.2 Fields.33 8.7.3 Methods 34 8.7.4 Properties 35 8.7.5 Events36 8.7.6 Operators.37 8.7.7 Indexers.38 8.7.8 Instance constructors.39 8.7.9 Destructors 39 8.7.10 Static constructors.40 8.7.11 Inheritance 40 8.8 Structs 41
12、 8.9 Interfaces . 42 8.10 Delegates . 43 8.11 Enums 44 8.12 Namespaces and assemblies 45 8.13 Versioning . 46 8.14 Attributes . 48 9. Lexical structure 51 9.1 Programs 51 9.2 Grammars 51 9.2.1 Lexical grammar .51 9.2.2 Syntactic grammar 51 9.3 Lexical analysis . 52 9.3.1 Line terminators52 9.3.2 Com
13、ments .53 ISO/IEC 23270:2003(E) iv ISO/IEC 2003 All rights reserved 9.3.3 White space.54 9.4 Tokens . 54 9.4.1 Unicode escape sequences 54 9.4.2 Identifiers55 9.4.3 Keywords56 9.4.4 Literals 57 9.4.5 Operators and punctuators 62 9.5 Pre-processing directives. 62 9.5.1 Conditional compilation symbols
14、 .63 9.5.2 Pre-processing expressions .63 9.5.3 Declaration directives .64 9.5.4 Conditional compilation directives .65 9.5.5 Diagnostic directives.67 9.5.6 Region control.67 9.5.7 Line directives.68 10. Basic concepts 69 10.1 Application startup 69 10.2 Application termination. 69 10.3 Declarations
15、. 70 10.4 Members 72 10.4.1 Namespace members 72 10.4.2 Struct members .72 10.4.3 Enumeration members 73 10.4.4 Class members 73 10.4.5 Interface members.73 10.4.6 Array members .73 10.4.7 Delegate members.73 10.5 Member access 73 10.5.1 Declared accessibility .74 10.5.2 Accessibility domains .74 10
16、.5.3 Protected access for instance members.77 10.5.4 Accessibility constraints .77 10.6 Signatures and overloading . 78 10.7 Scopes 79 10.7.1 Name hiding81 10.8 Namespace and type names. 83 10.8.1 Fully qualified names84 10.9 Automatic memory management. 85 10.10 Execution order . 87 11. Types 89 11
17、.1 Value types 89 11.1.1 Default constructors90 11.1.2 Struct types .90 11.1.3 Simple types91 11.1.4 Integral types.91 11.1.5 Floating point types.92 11.1.6 The decimal type.94 11.1.7 The bool type94 11.1.8 Enumeration types 94 11.2 Reference types . 94 11.2.1 Class types 95 11.2.2 The object type.9
18、5 11.2.3 The string type.95 ISO/IEC 23270:2003(E) ISO/IEC 2003 All rights reserved v 11.2.4 Interface types.96 11.2.5 Array types96 11.2.6 Delegate types.96 11.3 Boxing and unboxing 96 11.3.1 Boxing conversions.96 11.3.2 Unboxing conversions 97 12. Variables 99 12.1 Variable categories 99 12.1.1 Sta
19、tic variables99 12.1.2 Instance variables99 12.1.3 Array elements100 12.1.4 Value parameters 100 12.1.5 Reference parameters100 12.1.6 Output parameters.100 12.1.7 Local variables101 12.2 Default values 101 12.3 Definite assignment . 102 12.3.1 Initially assigned variables102 12.3.2 Initially unassi
20、gned variables103 12.3.3 Precise rules for determining definite assignment 103 12.4 Variable references 112 12.5 Atomicity of variable references . 112 13. Conversions 113 13.1 Implicit conversions 113 13.1.1 Identity conversion .113 13.1.2 Implicit numeric conversions113 13.1.3 Implicit enumeration
21、 conversions.114 13.1.4 Implicit reference conversions114 13.1.5 Boxing conversions.114 13.1.6 Implicit constant expression conversions .114 13.1.7 User-defined implicit conversions 115 13.2 Explicit conversions 115 13.2.1 Explicit numeric conversions115 13.2.2 Explicit enumeration conversions.117 1
22、3.2.3 Explicit reference conversions117 13.2.4 Unboxing conversions 117 13.2.5 User-defined explicit conversions.118 13.3 Standard conversions. 118 13.3.1 Standard implicit conversions.118 13.3.2 Standard explicit conversions .118 13.4 User-defined conversions 118 13.4.1 Permitted user-defined conve
23、rsions118 13.4.2 Evaluation of user-defined conversions119 13.4.3 User-defined implicit conversions 119 13.4.4 User-defined explicit conversions.120 14. Expressions 123 14.1 Expression classifications 123 14.1.1 Values of expressions .124 14.2 Operators . 124 14.2.1 Operator precedence and associati
24、vity124 14.2.2 Operator overloading 125 14.2.3 Unary operator overload resolution 126 14.2.4 Binary operator overload resolution .127 ISO/IEC 23270:2003(E) vi ISO/IEC 2003 All rights reserved 14.2.5 Candidate user-defined operators .127 14.2.6 Numeric promotions .127 14.3 Member lookup . 129 14.3.1
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
10000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- ANSIISOIEC232702003INFORMATIONTECHNOLOGYCSHARPLANGUAGESPECIFICATIONADOPTEDBYINCITS 信息技术 INCITS 采用 CSHARP

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