C# 6.0 cookbook

Completely updated for C# 6.0, the new edition of this bestseller offers more than 150 code recipes to common and not-so-common problems that C# programmers face every day. More than a third of the recipes have been rewritten to take advantage of new C# 6.0 features. If you prefer solutions to gener...

Descripción completa

Detalles Bibliográficos
Otros Autores: Hilyard, Jay, author (author), Teilhet, Stephen, author
Formato: Libro electrónico
Idioma:Inglés
Publicado: Sebastopol, CA : O'Reilly 2015.
Edición:4th ed
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009629765406719
Tabla de Contenidos:
  • Cover; Copyright; Table of Contents; Preface; Who This Book Is For; What You Need to Use This Book; Platform Notes; How This Book Is Organized; What Was Left Out; Conventions Used in This Book; About the Code; Using Code Examples; Safari® Books Online; How to Contact Us; Acknowledgments; From Jay Hilyard; From Steve Teilhet; Chapter 1. Classes and Generics; 1.0 Introduction; 1.1 Creating Union-Type Structures; Problem; Solution; Discussion; See Also; 1.2 Making a Type Sortable; Problem; Solution; Discussion; See Also; 1.3 Making a Type Searchable; Problem; Solution; Discussion; See Also
  • 1.4 Returning Multiple Items from a MethodProblem; Solution; Discussion; See Also; 1.5 Parsing Command-Line Parameters; Problem; Solution; Discussion; See Also; 1.6 Initializing a Constant Field at Runtime; Problem; Solution; Discussion; See Also; 1.7 Building Cloneable Classes; Problem; Solution; Discussion; See Also; 1.8 Ensuring an Object's Disposal; Problem; Solution; Discussion; See Also; 1.9 Deciding When and Where to Use Generics; Problem; Solution; Discussion; See Also; 1.10 Understanding Generic Types; Problem; Solution; Discussion; See Also
  • 1.11 Reversing the Contents of a Sorted ListProblem; Solution; Discussion; See Also; 1.12 Constraining Type Arguments; Problem; Solution; Discussion; See Also; 1.13 Initializing Generic Variables to Their Default Values; Problem; Solution; Discussion; See Also; 1.14 Adding Hooks to Generated Entities; Problem; Solution; Discussion; See Also; 1.15 Controlling How a Delegate Fires Within a Multicast Delegate; Problem; Solution; Discussion; See Also; 1.16 Using Closures in C#; Problem; Solution; Discussion; See Also; 1.17 Performing Multiple Operations on a List Using Functors; Problem; Solution
  • DiscussionSee Also; 1.18 Controlling Struct Field Initialization; Problem; Solution; Discussion; See Also; 1.19 Checking for null in a More Concise Way; Problem; Solution; Discussion; See Also; Chapter 2. Collections, Enumerators, and Iterators; 2.0 Introduction; 2.1 Looking for Duplicate Items in a List; Problem; Solution; Discussion; See Also; 2.2 Keeping Your List Sorted; Problem; Solution; Discussion; See Also; 2.3 Sorting a Dictionary's Keys and/or Values; Problem; Solution; Discussion; See Also; 2.4 Creating a Dictionary with Min and Max Value Boundaries; Problem; Solution
  • DiscussionSee Also; 2.5 Persisting a Collection Between Application Sessions; Problem; Solution; Discussion; See Also; 2.6 Testing Every Element in an Array or List; Problem; Solution; Discussion; See Also; 2.7 Creating Custom Enumerators; Problem; Solution; Discussion; See Also; 2.8 Dealing with finally Blocks and Iterators; Problem; Solution; Discussion; See Also; 2.9 Implementing Nested foreach Functionality in a Class; Problem; Solution; Discussion; See Also; 2.10 Using a Thread-Safe Dictionary for Concurrent Access Without Manual Locking; Problem; Solution; Discussion; See Also
  • Chapter 3. Data Types