Illustrated C# 2012 [electronic resource] /
Solis, Daniel.author.
This book presents the C# 5.0 language in a uniquely succinct and visual format. Often in programming books, the information can be hidden in a vast sea of words. As a programmer who has over the years used a dozen programming languages, the author understands it can sometimes be difficult to slog through another 1,000-page book of dense text to learn a new language. There are likely many other programmers who feel the same way. To address this situation, this book explains C# 5.0 using figures; short, focused code samples; and clear, concise explanations. Figures are of prime importance in this book. While teaching programming seminars, Daniel Solis found that he could almost watch the light bulbs going on over the students’ heads as he drew the figures on the whiteboard. In this text, he has distilled each important concept into simple but accurate illustrations. The visual presentation of the content will give you an understanding of C# that’s not possible with text alone. For something as intricate and precise as a programming language, however, there must be text as well as figures. But rather than long, wordy explanations, Solis has used short, concise descriptions and bulleted lists to make each important piece of information visually distinct. By the end of this book, you’ll have a thorough working knowledge of all aspects of the C# language, whether you’re a novice programmer or a seasoned veteran of other languages. If you want a long, leisurely, verbose explanation of the language, this is not the book for you. But if you want a concise, thorough, visual presentation of C# 5.0, this is just what you’re looking for.
Title Page; Copyright Page; Dedication Page; Contents at a Glance; Table of Contents; About the Author; About the Technical Reviewer; Acknowledgments; Introduction; Audience, Source Code, and Contact Information; CHAPTER 1 C# and the .NET Framework; Before .NET; Windows Programming in the Late 1990s; Goals for the Next-Generation Platform Services; Enter Microsoft .NET; Components of the .NET Framework; An Improved Programming Environment; Object-Oriented Development Environment; Automatic Garbage Collection; Interoperability; No COM Required; Simplified Deployment; Type Safety
The Base Class LibraryCompiling to the Common Intermediate Language; Compiling to Native Code and Execution; Overview of Compilation and Execution; The Common Language Runtime; The Common Language Infrastructure; Important Parts of the CLI; The Common Type System; The Common Language Specification; Review of the Acronyms; The Evolution of C#; CHAPTER 2 Overview of C# Programming; A Simple C# Program; More About SimpleProgram; Identifiers; Keywords; Main: The Starting Point of a Program; Whitespace; Statements; Blocks; Text Output from a Program; Write; WriteLine; The Format String
Multiple Markers and ValuesFormatting Numeric Strings; The Alignment Specifier; The Format Field; Standard Numeric Format Specifiers; Comments: Annotating the Code; More About Comments; Documentation Comments; Summary of Comment Types; CHAPTER 3 Types, Storage, and Variables; A C# Program Is a Set of Type Declarations; A Type Is a Template; Instantiating a Type; Data Members and Function Members; Types of Members; Predefined Types; More About the Predefined Types; User-Defined Types; The Stack and the Heap; The Stack; Facts About Stacks; The Heap; Value Types and Reference Types
Storing Members of a Reference Type ObjectCategorizing the C# Types; Variables; Variable Declarations; Variable Initializers; Automatic Initialization; Multiple-Variable Declarations; Using the Value of a Variable; Static Typing and the dynamic Keyword; Nullable Types; CHAPTER 4 Classes: The Basics; Overview of Classes; A Class Is an Active Data Structure; Programs and Classes: A Quick Example; Declaring a Class; Class Members; Fields; Explicit and Implicit Field Initialization; Declarations with Multiple Fields; Methods; Creating Variables and Instances of a Class
Allocating Memory for the DataCombining the Steps; Instance Members; Access Modifiers; Private and Public Access; Depicting Public and Private Access; Example of Member Access; Accessing Members from Inside the Class; Accessing Members from Outside the Class; Putting It All Together; CHAPTER 5 Methods; The Structure of a Method; Code Execution in the Method Body; Local Variables; Type Inference and the var Keyword; Local Variables Inside Nested Blocks; Local Constants; Flow of Control; Method Invocations; Return Values; The Return Statement and Void Methods; Parameters; Formal Parameters
Actual Parameters
Includes index.
This book presents the C# 5.0 language in a uniquely succinct and visual format. Often in programming books, the information can be hidden in a vast sea of words. As a programmer who has over the years used a dozen programming languages, the author understands it can sometimes be difficult to slog through another 1,000-page book of dense text to learn a new language. There are likely many other programmers who feel the same way. To address this situation, this book explains C# 5.0 using figures; short, focused code samples; and clear, concise explanations. Figures are of prime importance in this book. While teaching programming seminars, Daniel Solis found that he could almost watch the light bulbs going on over the students’ heads as he drew the figures on the whiteboard. In this text, he has distilled each important concept into simple but accurate illustrations. The visual presentation of the content will give you an understanding of C# that’s not possible with text alone. For something as intricate and precise as a programming language, however, there must be text as well as figures. But rather than long, wordy explanations, Solis has used short, concise descriptions and bulleted lists to make each important piece of information visually distinct. By the end of this book, you’ll have a thorough working knowledge of all aspects of the C# language, whether you’re a novice programmer or a seasoned veteran of other languages. If you want a long, leisurely, verbose explanation of the language, this is not the book for you. But if you want a concise, thorough, visual presentation of C# 5.0, this is just what you’re looking for.
Microsoft software.
Microsoft .NET Framework.
Software engineering.
Microsoft and .NET.
Software Engineering/Programming and Operating Systems.