Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Beginning C# 7 Hands-On ?????? The Core Language

You're reading from   Beginning C# 7 Hands-On ?????? The Core Language Learn the C# language by coding it element by element

Arrow left icon
Product type Paperback
Published in Aug 2017
Publisher
ISBN-13 9781788296540
Length 566 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Tom Owsiak Tom Owsiak
Author Profile Icon Tom Owsiak
Tom Owsiak
Arrow right icon
View More author details
Toc

Table of Contents (60) Chapters Close

Preface 1. Why C# and How to Download and Install the Visual Studio Community Edition 2. Customizing Visual Studio to Make it Feel More Personal FREE CHAPTER 3. Creating and Running Your First Page 4. Creating and Running a Page That Incorporates C# 5. Creating and Using a Single Variable 6. String Interpolation and Updating Visual Studio 7. Formatting Output Strings for More Professional Results 8. Using Variables and Data Types 9. Computed Variables and Basic Math 10. Interacting with Users Through the Web Page 11. Using Method Chaining to Write More Compact Code 12. Reacting to a Single Condition with If/Else Blocks 13. Making a Variable Grow by Adding 1 14. Repeating Blocks of Code with While Loops 15. Repeating Blocks of Code with For Loops 16. Iterating Over Collections with foreach Loops 17. Examining Multiple Variable Values with Switch Blocks 18. Improving Input Processing with TryParse 19. Replacing If/Else Blocks with the Ternary Operator 20. Operators That Evaluate and Assign in Place 21. Checking Two Conditions with the Logical AND Operator 22. Checking Two Conditions with the Logical OR Operator 23. Declaring, Setting, and Reading Arrays 24. Iterating Over Arrays with foreach Loops 25. Creating and Using a Simple Method 26. Passing Arrays into Methods 27. Reference Type and Value Type Variables 28. Creating More Flexible Methods with the params Keyword 29. Creating More Flexible Functions with the out Keyword 30. Combining the ref and out Keywords to Write Flexible Functions 31. The out Keyword in C# 7 32. Multidimensional Arrays 33. Writing Easier Code with the Var and Dynamic Keywords 34. Creating a Class with a Constructor and a Function 35. Creating a Class with a Static Method 36. Creating a Class with an Object Property 37. Creating a Class with Static Fields, and Properties 38. Centralizing Common Code with Inheritance 39. Centralizing Default Code with Virtual Functions 40. Model Concepts with Abstract Classes 41. Using Custom Types as Return Types 42. Using Lists to Operate on Data Efficiently 43. Writing Less Code with Polymorphism 44. Using Interfaces to Express Common Behaviors 45. Iterating over Instances with Indexers 46. Building Stabler Apps with Exception Handling 47. Using Named and Optional Parameters 48. Using the Null Coalescing Operator to Write Stabler Applications 49. Overloading Operators to Perform Custom Operations 50. Using Enumerations to Represent Named Constants 51. Creating and Using Namespaces 52. Structs, Random Points, and Sleeping Threads 53. Declaring, Creating, and Using Delegates 54. Switch Blocks with when in C# 7.0 55. Switch Blocks with Objects in C# 7.0 56. Tuples in C# 7.0 57. Local functions in C# 7.0 58. Throwing Exceptions in C# 7.0 59. Tuples in C# 7.0, Part 2

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the example code

You can download the example code files for this book from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files emailed directly to you. You can download the code files by following these steps:

  1. Log in or register to our website using your email address and password.
  2. Hover the mouse pointer on the SUPPORT tab at the top.
  3. Click on Code Downloads & Errata.
  4. Enter the name of the book in the Search box.
  5. Select the book for which you're looking to download the code files.
  6. Choose from the drop-down menu where you purchased this book from.
  7. Click on Code Download.

Once the file is downloaded, please make sure that you unzip or extract the folder using the latest version of:

  • WinRAR / 7-Zip for Windows
  • Zipeg / iZip / UnRarX for Mac
  • 7-Zip / PeaZip for Linux

The code bundle for the book is also hosted on GitHub at https://github.com/PacktPublishing/Beginning-CSharp-Hands-On-The-Core-Language. We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!

Downloading the color images of this book

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books-maybe a mistake in the text or the code-we would be grateful if you could report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your book, clicking on the Errata Submission Form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded to our website or added to any list of existing errata under the Errata section of that title. To view the previously submitted errata, go to https://www.packtpub.com/books/content/support and enter the name of the book in the search field. The required information will appear under the Errata section.

Piracy

Piracy of copyrighted material on the internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works in any form on the internet, please provide us with the location address or website name immediately so that we can pursue a remedy. Please contact us at copyright@packtpub.com with a link to the suspected pirated material. We appreciate your help in protecting our authors and our ability to bring you valuable content.

Questions

If you have a problem with any aspect of this book, you can contact us at questions@packtpub.com, and we will do our best to address the problem.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime