C# 10.0 All-in-One For Dummies
Published by: John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030-5774, www.wiley.com
Copyright 2022 by John Wiley & Sons, Inc., Hoboken, New Jersey
Published simultaneously in Canada
No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without the prior written permission of the Publisher. Requests to the Publisher for permission should be addressed to the Permissions Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030, (201) 748-6011, fax (201) 748-6008, or online at http://www.wiley.com/go/permissions
.
Trademarks: Wiley, For Dummies, the Dummies Man logo, Dummies.com, Making Everything Easier, and related trade dress are trademarks or registered trademarks of John Wiley & Sons, Inc. and may not be used without written permission. All other trademarks are the property of their respective owners. John Wiley & Sons, Inc. is not associated with any product or vendor mentioned in this book.
LIMIT OF LIABILITY/DISCLAIMER OF WARRANTY: WHILE THE PUBLISHER AND AUTHORS HAVE USED THEIR BEST EFFORTS IN PREPARING THIS WORK, THEY MAKE NO REPRESENTATIONS OR WARRANTIES WITH RESPECT TO THE ACCURACY OR COMPLETENESS OF THE CONTENTS OF THIS WORK AND SPECIFICALLY DISCLAIM ALL WARRANTIES, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. NO WARRANTY MAY BE CREATED OR EXTENDED BY SALES REPRESENTATIVES, WRITTEN SALES MATERIALS OR PROMOTIONAL STATEMENTS FOR THIS WORK. THE FACT THAT AN ORGANIZATION, WEBSITE, OR PRODUCT IS REFERRED TO IN THIS WORK AS A CITATION AND/OR POTENTIAL SOURCE OF FURTHER INFORMATION DOES NOT MEAN THAT THE PUBLISHER AND AUTHORS ENDORSE THE INFORMATION OR SERVICES THE ORGANIZATION, WEBSITE, OR PRODUCT MAY PROVIDE OR RECOMMENDATIONS IT MAY MAKE. THIS WORK IS SOLD WITH THE UNDERSTANDING THAT THE PUBLISHER IS NOT ENGAGED IN RENDERING PROFESSIONAL SERVICES. THE ADVICE AND STRATEGIES CONTAINED HEREIN MAY NOT BE SUITABLE FOR YOUR SITUATION. YOU SHOULD CONSULT WITH A SPECIALIST WHERE APPROPRIATE. FURTHER, READERS SHOULD BE AWARE THAT WEBSITES LISTED IN THIS WORK MAY HAVE CHANGED OR DISAPPEARED BETWEEN WHEN THIS WORK WAS WRITTEN AND WHEN IT IS READ. NEITHER THE PUBLISHER NOR AUTHORS SHALL BE LIABLE FOR ANY LOSS OF PROFIT OR ANY OTHER COMMERCIAL DAMAGES, INCLUDING BUT NOT LIMITED TO SPECIAL, INCIDENTAL, CONSEQUENTIAL, OR OTHER DAMAGES.
For general information on our other products and services, please contact our Customer Care Department within the U.S. at 877-762-2974, outside the U.S. at 317-572-3993, or fax 317-572-4002. For technical support, please visit https://hub.wiley.com/community/support/dummies
.
Wiley publishes in a variety of print and electronic formats and by print-on-demand. Some material included with standard print versions of this book may not be included in e-books or in print-on-demand. If this book refers to media such as a CD or DVD that is not included in the version you purchased, you may download this material at http://booksupport.wiley.com
. For more information about Wiley products, visit www.wiley.com
.
Library of Congress Control Number: 2021951074
ISBN: 978-1-11-983907-1 (pbk)
ISBN 978-1-11-984012-1 (ebk); ISBN 978-1-11-983908-8 (ebk)
C# 10.0 All-in-One For Dummies
To view this book's Cheat Sheet, simply go to www.dummies.com and search for C# 10.0 All-in-One For Dummies Cheat Sheet in the Search box.
Table of Contents
List of Tables
- Book 1 Chapter 2
- Book 1 Chapter 3
- Book 1 Chapter 4
- Book 1 Chapter 6
- Book 1 Chapter 8
- Book 3 Chapter 1
- Book 3 Chapter 2
- Book 3 Chapter 4
List of Illustrations
- Book 1 Chapter 1
- Book 1 Chapter 6
- Book 1 Chapter 7
- Book 1 Chapter 9
- Book 2 Chapter 1
- Book 2 Chapter 2
- Book 2 Chapter 6
- Book 2 Chapter 7
- Book 2 Chapter 8
- Book 2 Chapter 9
- Book 3 Chapter 1
- Book 3 Chapter 2
- Book 3 Chapter 4
- Book 3 Chapter 5
- Book 3 Chapter 6
- Book 4 Chapter 1
- Book 4 Chapter 2
- Book 4 Chapter 3
- Book 5 Chapter 1
- Book 5 Chapter 2
- Book 5 Chapter 3
- Book 5 Chapter 4
- Book 5 Chapter 5
- Book 6 Chapter 1
- Book 6 Chapter 3
Guide
Pages
Introduction
C# is an amazing language that is currently ranked the fifth most popular language in the world, according to the Tiobe Index ( https://www.tiobe.com/tiobe-index/
)! You can use this single language to do everything from desktop development to creating web applications and even web-based application programming interfaces (APIs). In addition, C# now makes it possible to target a multitude of platforms, including macOS and Linux. While other developers have to overcome deficiencies in their languages to create even a subset of the application types that C# supports with aplomb, you can be coding your application, testing, and then sitting on the beach enjoying the fruits of your efforts. Of course, any language that does this much requires a bit of explanation, and C# 10.0 All-in-One For Dummies is your doorway to this new adventure in development.
So, why do you need C# 10.0 All-in-One For Dummies specifically? This book stresses learning the basics of the C# language before you do anything else. With this in mind, the book begins with all the C# basics in . Using this book helps you get the most you can from C# 10.0 in the least possible time.
About This Book
Even if you have past experience with C#, the new features in C# 10.0 will have you producing feature-rich applications in an even shorter time than you may have before. C# 10.0 All-in-One For Dummies introduces you to all these new features. For example, you discover how to work with both Universal Windows Platform (UWP) and Windows 10 and above applications (besides using all the old standbys). You also find all the new features provided for object-oriented development, and new IDE features designed to make your development experience easier. Make sure you dont miss out on the new Record
type discussed in Book 2, . This book is designed to make using C# 10.0 fast and easy; it removes the complexity that you may have experienced when trying to learn about these topics online.
To help you absorb the concepts, this book uses the following conventions:
- Text that you're meant to type just as it appears in the book is in bold. The exception is when youre working through a step list: Because each step is bold, the text to type is not bold.
- Words for you to type that are also in italics are meant as placeholders; you need to replace them with something that works for you. For example, if you see Type Your Name and press Enter, you need to replace Your Name with your actual name.
- I also use italics for terms I define. This means that you dont have to rely on other sources to provide the definitions you need.
- Web addresses and programming code appear in
Next page