SitePoint
Blog
Forum
Library
Login
Join Premium
Toggle sidebar
Beginning C# and .NET, 2021 Edition
Toggle community discussions
Close
Content
Files
Bookmarks
Preface
Beginning C# and .NET, 2021 Edition
INTRODUCTION
1
Introducing C#
WHAT IS .NET?
WHAT IS C#?
VISUAL STUDIO
WHAT YOU LEARNED IN THIS CHAPTER
Writing a C# Program
THE VISUAL STUDIO DEVELOPMENT ENVIRONMENT
CONSOLE APPLICATIONS
DESKTOP APPLICATIONS
WHAT YOU LEARNED IN THIS CHAPTER
Variables and Expressions
BASIC C# SYNTAX
BASIC C# CONSOLE APPLICATION STRUCTURE
VARIABLES
EXPRESSIONS
EXERCISES
WHAT YOU LEARNED IN THIS CHAPTER
Flow Control
BOOLEAN LOGIC
BRANCHING
EXERCISES
WHAT YOU LEARNED IN THIS CHAPTER
More about Variables
CODE DOWNLOADS FOR THIS CHAPTER
TYPE CONVERSION
COMPLEX VARIABLE TYPES
STRING MANIPULATION
WHAT YOU LEARNED IN THIS CHAPTER
Functions
DEFINING AND USING FUNCTIONS
VARIABLE SCOPE
THE MAIN() FUNCTION
STRUCT FUNCTIONS
OVERLOADING FUNCTIONS
USING DELEGATES
WHAT YOU LEARNED IN THIS CHAPTER
Debugging and Error Handling
DEBUGGING IN VISUAL STUDIO
ERROR HANDLING
WHAT YOU LEARNED IN THIS CHAPTER
Introduction to Object-Oriented Programming
WHAT IS OBJECT-ORIENTED PROGRAMMING?
OOP TECHNIQUES
OOP IN DESKTOP APPLICATIONS
WHAT YOU LEARNED IN THIS CHAPTER
Defining Classes
CLASS DEFINITIONS IN C#
SYSTEM.OBJECT
CONSTRUCTORS AND DESTRUCTORS
OOP TOOLS IN VISUAL STUDIO
CLASS LIBRARY PROJECTS
INTERFACES VERSUS ABSTRACT CLASSES
STRUCT TYPES
SHALLOW COPYING VERSUS DEEP COPYING
WHAT YOU LEARNED IN THIS CHAPTER
Defining Class Members
MEMBER DEFINITIONS
ADDITIONAL CLASS MEMBER TOPICS
INTERFACE IMPLEMENTATION
PARTIAL CLASS DEFINITIONS
PARTIAL METHOD DEFINITIONS
EXAMPLE APPLICATION
THE CALL HIERARCHY WINDOW
WHAT YOU LEARNED IN THIS CHAPTER
Collections, Comparisons, and Conversions
COLLECTIONS
COMPARISONS
CONVERSIONS
WHAT YOU LEARNED IN THIS CHAPTER
Generics
WHAT ARE GENERICS?
USING GENERICS
DEFINING GENERIC TYPES
VARIANCE
EXERCISES
WHAT YOU HAVE LEARNED IN THIS CHAPTER
Additional C# Techniques
THE :: OPERATOR AND THE GLOBAL NAMESPACE QUALIFIER
CUSTOM EXCEPTIONS
EVENTS
EXPANDING AND USING CARDLIB
ATTRIBUTES
INITIALIZERS
TYPE INFERENCE
ANONYMOUS TYPES
DYNAMIC LOOKUP
ADVANCED METHOD PARAMETERS
LAMBDA EXPRESSIONS
WHAT YOU LEARNED IN THIS CHAPTER
Files
FILE CLASSES FOR INPUT AND OUTPUT
STREAMS
MONITORING THE FILE SYSTEM
WHAT YOU LEARNED IN THIS CHAPTER
XML and JSON
XML BASICS
JSON BASICS
XML SCHEMAS
XML DOCUMENT OBJECT MODEL
TRY IT OUT: Removing Nodes: Chapter15\LoopThroughXmlDocument
SEARCHING XML WITH XPATH
JSON SERIALIZATION AND DESERIALIZATION
WHAT YOU LEARNED IN THIS CHAPTER
LINQ
LINQ TO XML
LINQ PROVIDERS
LINQ QUERY SYNTAX
LINQ METHOD SYNTAX
ORDERING QUERY RESULTS
UNDERSTANDING THE ORDERBY CLAUSE
QUERYING A LARGE DATA SET
USING AGGREGATE OPERATORS
USING THE SELECT DISTINCT QUERY
ORDERING BY MULTIPLE LEVELS
USING GROUP QUERIES
USING JOINS
EXERCISES
WHAT YOU LEARNED IN THIS CHAPTER
Databases
USING DATABASES
ENTITY FRAMEWORK
CODE-FIRST VERSUS DATABASE-FIRST
MIGRATIONS AND SCAFFOLDING
INSTALL SQL SERVER EXPRESS LOCALDB
A CODE-FIRST DATABASE
EXPLORING YOUR DATABASE
NAVIGATING DATABASE RELATIONSHIPS
CREATING AND QUERYING XML FROM AN EXISTING DATABASE
WHAT YOU LEARNED IN THIS CHAPTER
.NET and ASP.NET
CROSS-PLATFORM BASICS AND KEY “MUST KNOW” TERMS
WHAT WAS .NET STANDARD?
REFERENCING AND TARGETING .NET
WHAT WAS .NET CORE?
PORTING FROM .NET FRAMEWORK TO .NET
OVERVIEW OF WEB APPLICATIONS
WHICH ASP.NET TO USE AND WHY
WHAT YOU LEARNED IN THIS CHAPTER
Basic Cloud Programming
THE CLOUD, CLOUD COMPUTING, AND THE CLOUD OPTIMIZED STACK
CLOUD PATTERNS AND BEST PRACTICES
USING MICROSOFT AZURE C# LIBRARIES TO CREATE A STORAGE CONTAINER
CREATING AN ASP.NET CORE WEB APPLICATION THAT USES THE STORAGE CONTAINER
EXERCISES
WHAT YOU LEARNED IN THIS CHAPTER
Basic Web API and WCF Programming
CREATING AN ASP.NET CORE WEB API
CONSUMING AN ASP.NET CORE WEB API
WHAT IS REST?
WHAT IS WCF?
WCF CONCEPTS
WCF PROGRAMMING
WHAT YOU LEARNED IN THIS CHAPTER
Basic Desktop Programming
XAML
THE PLAYGROUND
CONTROL LAYOUT
THE GAME CLIENT
CREATING AND STYLING CONTROLS
WPF USER CONTROLS
THE MAIN WINDOW
PUTTING IT ALL TOGETHER
WHAT YOU LEARNED IN THIS CHAPTER
Appendix: Exercise Solutions
CHAPTER 3 SOLUTIONS
CHAPTER 4 SOLUTIONS
CHAPTER 5 SOLUTIONS
CHAPTER 6 SOLUTIONS
CHAPTER 7 SOLUTIONS
CHAPTER 8 SOLUTIONS
CHAPTER 9 SOLUTIONS
CHAPTER 10 SOLUTIONS
CHAPTER 11 SOLUTIONS
CHAPTER 12 SOLUTIONS
CHAPTER 13 SOLUTIONS
CHAPTER 14 SOLUTIONS
CHAPTER 15 SOLUTIONS
CHAPTER 16 SOLUTIONS
CHAPTER 17 SOLUTIONS
CHAPTER 19 SOLUTIONS
CHAPTER 20 SOLUTIONS
CHAPTER 21 SOLUTIONS
Index
ABOUT THE AUTHORS
ABOUT THE TECHNICAL EDITOR
ACKNOWLEDGMENTS
WILEY END USER LICENSE AGREEMENT
Open text modal
Community Questions
Close