Features
The definitive specification to C#, from the language's architect and the specification's author!
° Anders Hejlsberg is the architect of C#, and Scott Wiltamuth is the author of the C# specification
° The book will have a thorough print index, a searchable online index, and helpful navigation tools
° Fully up to date for C# version 1.1 and Visual Studio 2003, it also has extensive coverage of new features being added to the next version of C#
- Copyright 2004
- Edition: 1st
-
Book
- ISBN-10: 0-321-15491-6
- ISBN-13: 978-0-321-15491-0
C# is a simple, modern, object-oriented, and type-safe programming language that combines the high productivity of rapid application development languages with the raw power of C and C++. Written by the language's architect and design team members, The C# Programming Language is the definitive technical reference for C#. Moving beyond the online documentation, the book provides the complete specification of the language along with descriptions, reference materials, and code samples from the C# design team.
The first part of the book opens with an introduction to the language to bring readers quickly up to speed on the concepts of C#. Next follows a detailed and complete technical specification of the C# 1.0 language, as delivered in Visual Studio .NET 2002 and 2003. Topics covered include Lexical Structure, Types, Variables, Conversions, Expressions, Statements, Namespaces, Exceptions, Attributes, and Unsafe Code.
The second part of the book provides an introduction to and technical specification of the four major new features of C# 2.0: Generics, Anonymous Methods, Iterators, and Partial Types.
Reference tabs and an exhaustive print index allow readers to easily navigate the text and quickly find the topics that interest them most. An enhanced online index allows readers to quickly and easily search the entire text for specific topics.
With the recent acceptance of C# as a standard by both the International Organization for Standardization (ISO) and ECMA, understanding the C# specification has become critical. The C# Programming Language is the definitive reference for programmers who want to acquire an in-depth knowledge of C#.
0321154916B10142003
Downloadable Sample Chapter
Download the Sample Chapters related to this title:
Chapter
19
Chapter
20
Table of Contents
Preface.
I. C# 1.0.
1. Introduction. Hello World.
Program Structure.
Types and Variables.
Expressions.
Statements.
Classes and Objects.
Structs.
Arrays.
Interfaces.
Enums.
Delegates.
Attributes.
2. Lexical Structure. Programs.
Grammars.
Lexical Analysis.
Tokens.
Preprocessing Directives.
3. Basic Concepts. Application Startup.
Application Termination.
Declarations.
Members.
Member Access.
Signatures and Overloading.
Scopes.
Namespace and Type Names.
Automatic Memory Management.
Execution Order.
4. Types. Value Types.
Reference Types.
Boxing and Unboxing.
5. Variables. Variable Categories.
Default Values.
Definite Assignment.
Variable References.
Atomicity of Variable References.
6. Conversions. Implicit Conversions.
Explicit Conversions.
Standard Conversions.
User-Defined Conversions.
7. Expressions. Expression Classifications.
Operators.
Member Lookup.
Function Members.
Primary Expressions.
Unary Operators.
Arithmetic Operators.
Shift Operators.
Relational and Type-Testing Operators.
Logical Operators.
Conditional Logical Operators.
Conditional Operator.
Assignment Operators.
Expression.
Constant Expressions.
Boolean Expressions.
8. Statements. End Points and Reachability.
Blocks.
The Empty Statement.
Labeled Statements.
Declaration Statements.
Expression Statements.
Selection Statements.
Iteration Statements.
Jump Statements.
The try Statement.
The checked and unchecked Statements.
The lock Statement.
The using Statement.
9. Namespaces. Compilation Units.
Namespace Declarations.
Using Directives.
Namespace Members.
Type Declarations.
10. Classes. Class Declarations.
Class Members.
Constants.
Fields.
Methods.
Properties.
Events.
Indexers.
Operators.
Instance Constructors.
Static Constructors.
Destructors.
11. Structs. Struct Declarations.
Struct Members.
Class and Struct Differences.
Struct Examples.
12. Arrays. Array Types.
Array Creation.
Array Element Access.
Array Members.
Array Covariance.
Array Initializers.
13. Interfaces. Interface Declarations.
Interface Members.
Fully Qualified Interface Member Names.
Interface Implementations.
14. Enums. Enum Declarations.
Enum Modifiers.
Enum Members.
The System.Enum Type.
Enum Values and Operations.
15. Delegates. Delegate Declarations.
Delegate Instantiation.
Delegate Invocation.
16. Exceptions. Causes of Exceptions.
The System.Exception Class.
How Exceptions Are Handled.
Common Exception Classes.
17. Attributes. Attribute Classes.
Attribute Specification.
Attribute Instances.
Reserved Attributes.
Attributes for Interoperation.
18. Unsafe Code. Unsafe Contexts.
Pointer Types.
Fixed and Moveable Variables.
Pointer Conversions.
Pointers in Expressions.
The fixed Statement.
Stack Allocation.
Dynamic Memory Allocation.
II. C# 2.0.
19. Introduction to C# 2.0. Generics.
Anonymous Methods.
Iterators.
Partial Types.
20. Generics. Generic Class Declarations.
Generic Struct Declarations.
Generic Interface Declarations.
Generic Delegate Declarations.
Constructed Types.
Generic Methods.
Constraints.
Expressions and Statements.
Revised Lookup Rules.
Right-Shift Grammar Changes.
21. Anonymous Methods. Anonymous Method Expressions.
Anonymous Method Signatures.
Anonymous Method Conversions.
Anonymous Method Blocks.
Outer Variables.
Anonymous Method Evaluation.
Delegate Instance Equality.
Definite Assignment.
Method Group Conversions.
Implementation Example.
22. Iterators. Iterator Blocks.
Enumerator Objects.
Enumerable Objects.
The yield Statement.
Implementation Example.
23. Partial Types. Partial Declarations.
Name Binding.
III. APPENDIXES.
A. Documentation Comments. Introduction.
Recommended Tags.
Processing the Documentation File.
An Example.
B. Grammar. Lexical Grammar.
Syntactic Grammar.
Grammar Extensions for Unsafe Code.
Index.
Index
Download the Index
file related to this title.