C# 4.0 pocket reference

When you're programming C# 4.0 and need a little help, this tightly focused and practical book tells you exactly what you need to know -- without long introductions or bloated examples. It's ideal as a succinct quick reference or as a guide to get you rapidly up to speed if you already kn...

Descripción completa

Detalles Bibliográficos
Otros Autores: Albahari, Joseph, author (author), Albahari, Ben, author
Formato: Libro electrónico
Idioma:Inglés
Publicado: Sebastopol : O'Reilly [2010]
Edición:3rd ed
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009628294206719
Tabla de Contenidos:
  • Table of Contents; Chapter 1. C# 4.0 Pocket Reference; Using Code Examples; How to Contact Us; Safari® Books Online; A First C# Program; Compilation; Syntax; Identifiers and Keywords; Avoiding conflicts; Contextual keywords; Literals, Punctuators, and Operators; Comments; Type Basics; Predefined Type Examples; Custom Type Examples; Members of a type; Symmetry of predefined types and custom types; Constructors and instantiation; Instance versus static members; The public keyword; Conversions; Value Types Versus Reference Types; Value types; Reference types; Null; Predefined Type Taxonomy
  • Numeric TypesNumeric Literals; Numeric literal type inference; Numeric suffixes; Numeric Conversions; Integral to integral conversions; Real to real conversions; Real to integral conversions; Arithmetic Operators; Increment and Decrement Operators; Specialized Integral Operations; Integral division; Integral overflow; The checked and unchecked operators; Bitwise operators; 8- and 16-Bit Integrals; Special Float and Double Values; double Versus decimal; Real Number Rounding Errors; Boolean Type and Operators; Equality and Comparison Operators; Conditional Operators; Strings and Characters
  • String TypeString concatenation; String comparisons; Searching within strings; Manipulating strings; Arrays; Default Element Initialization; Multidimensional Arrays; Rectangular arrays; Jagged arrays; Simplified Array Initialization Expressions; Variables and Parameters; The Stack and the Heap; Stack; Heap; Definite Assignment; Default Values; Parameters; Passing arguments by value; The ref modifier; The out modifier; The params modifier; Optional parameters (C# 4.0); Named arguments (C# 4.0); var-Implicitly Typed Local Variables; Expressions and Operators; Assignment Expressions
  • Operator Precedence and AssociativityPrecedence; Left-associative operators; Right-associative operators; Operator Table; Statements; Declaration Statements; Local variable scope; Expression Statements; Selection Statements; The if statement; The else clause; Changing the flow of execution with braces; The switch statement; Iteration Statements; while and do-while loops; for loops; foreach loops; Jump Statements; The break statement; The continue statement; The goto statement; The return statement; Namespaces; The using Directive; Rules Within a Namespace; Name scoping; Name hiding
  • Repeated namespacesThe global:: qualifier; Aliasing Types and Namespaces; Classes; Fields; Methods; Overloading methods; Instance Constructors; Implicit parameterless constructors; Nonpublic constructors; Object Initializers; The this Reference; Properties; Automatic properties; get and set accessibility; Indexers; Implementing an indexer; Constants; Static Constructors; Static Classes; Finalizers; Partial Types and Methods; Partial methods; Inheritance; Polymorphism; Casting and Reference Conversions; Upcasting; Downcasting; The as operator; The is operator; Virtual Function Members
  • Abstract Classes and Abstract Members