ENGLISH

C# Essentials

Book information

Publisher
Inc, O'Reilly Media
Year
2010
ISBN
9781449390839, 1449390838
Language
english
Format
EPUB
Filesize
789 kB (807697 bytes)
Edition
2nd ed
Pages
218\0
Time added
2019-09-24 23:56:38

Description

Concise but thorough, this second edition of C♯ Essentials introduces the Microsoft C♯ programming language, including the Microsoft .NET Common Language Runtime (CLR) and .NET Framework Class Libraries (FCL) that support it. This book?s compact format and terse presentation of key concepts serve as a roadmap to the online documentation included with the Microsoft .NET Framework SDK; the many examples provide much-needed context. This new edition has been updated to cover the final release of the C♯ language. In addition to overviews of C♯, the CLR, and the FCL, this new edition of C♯ Essential.  Read more... Abstract: Concise but thorough, this second edition of C♯ Essentials introduces the Microsoft C♯ programming language, including the Microsoft .NET Common Language Runtime (CLR) and .NET Framework Class Libraries (FCL) that support it. This book?s compact format and terse presentation of key concepts serve as a roadmap to the online documentation included with the Microsoft .NET Framework SDK; the many examples provide much-needed context. This new edition has been updated to cover the final release of the C♯ language. In addition to overviews of C♯, the CLR, and the FCL, this new edition of C♯ Essential Content: Table of Contents Preface Audience About This Book C♯ Online Conventions Used in This Book How to Contact Us Acknowledgments Ben Albahari Peter Drayton Brad Merrill Introduction C♯ Language Common Language Runtime Framework Class Library A First C♯ Program C♯ Language Reference Identifiers Types Type Instances Example: Building and Using Types Implicit and Explicit Conversions Categories of Types Value types Reference types Pointer types Predefined Types Integral types Floating-point types decimal type char type bool type object type string type. Types and MemoryMemory for value types Memory for reference types Value types and reference types side by side Unified Type System Simple types are value types Value types expand the set of simple types Boxing and unboxing value types Variables Definite Assignment Default Values Expressions and Operators Operator Precedence Arithmetic Overflow Check Operators Statements Expression Statements Declaration Statements Empty Statements Selection Statements if-else statement switch statement Loop Statements while loops do-while loops for loops foreach loops jump Statements. Break statementcontinue statement goto statement return statement throw statement lock statement using statement Organizing Types Files Namespaces Nesting namespaces Using a type with its fully qualified name using keyword Aliasing types and namespaces Global namespace Inheritance Class Conversions as operator is operator Polymorphism Virtual Function Members Abstract Classes and Members Sealed Methods and Sealed Classes Hiding Inherited Members Versioning Virtual Function Members Access Modifiers Restrictions on Access Modifiers Classes and Structs. Differences Between Classes and StructsInstance and Static Members Fields Constants Versioning with constants Properties Indexers Methods Signatures Passing arguments by value ref modifier out modifier params modifier Overloading methods Operators Implementing value equality Logically paired operators Custom implicit and explicit conversions Three-state logic operators Indirectly overloadable operators Instance Constructors Calling base class constructors Field initialization order Constructor access modifiers Static Constructors Base class constructor order. Static field initialization orderNondeterminism of static constructor calls Self-Referencing this keyword base keyword Destructors and Finalizers Nested Types Interfaces Defining an Interface Implementing an Interface Using an Interface Extending an Interface Explicit Interface Implementation Reimplementing an Interface Interface Conversions Arrays Multidimensional Arrays Local and Field Array Declarations Array Length and Rank Bounds Checking Array Conversions Enums Enum Operators Enum Conversions Delegates Multicast Delegates.

Similar books