Beginning C# 7 Hands-On – Advanced Language Features

An advanced C# beginners guide to some of the tougher parts of the C# language!
Preview in Mapt

Beginning C# 7 Hands-On – Advanced Language Features

Tom Owsiak

1 customer reviews
An advanced C# beginners guide to some of the tougher parts of the C# language!
Mapt Subscription
FREE
$29.99/m after trial
eBook
$16.00
RRP $31.99
Save 49%
Print + eBook
$39.99
RRP $39.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$16.00
$39.99
$29.99 p/m after trial
RRP $31.99
RRP $39.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Beginning C# 7 Hands-On – Advanced Language Features Book Cover
Beginning C# 7 Hands-On – Advanced Language Features
$ 31.99
$ 16.00
C# 7.1 and .NET Core 2.0 – Modern Cross-Platform Development - Third Edition Book Cover
C# 7.1 and .NET Core 2.0 – Modern Cross-Platform Development - Third Edition
$ 31.99
$ 16.00
Buy 2 for $32.00
Save $31.98
Add to Cart

Book Details

ISBN 139781788294263
Paperback310 pages

Book Description

Beginning C# 7 Hands-On – Advanced Language Features assumes that you’ve mastered the basic elements of the C# language and that you're now ready to learn the more advanced C# language and syntax, line by line, in a working Visual Studio environment. You'll learn how to code advanced C# language topics including generics, lambda expressions, and anonymous methods.

You'll learn to use query syntax to construct queries and deploy queries that perform aggregation functions. Work with C# and SQL Server 2017 to perform complex joins and stored procedures. Explore advanced file access methods, and see how to serialize and deserialize objects – all by writing working lines of code that you can run within Visual Studio.

This book is designed for beginner C# developers who have mastered the basics now, and anyone who needs a fast reference to using advanced C# language features in practical coding examples. You'll also take a look at C# through web programming with web forms.

By the time you’ve finished this book, you’ll know all the critical advanced elements of the C# language and how to program everything from C# generics to XML, LINQ, and your first full MVC web applications. These are the advanced building blocks that you can then combine to exploit the full power of the C# programming language, line by line.

Table of Contents

Chapter 1: Creating a Simple Generics Class
Creating a generics class
Adding a button to Default.aspx
Initializing a collection of integers to their array and displaying the results
Chapter review
Summary
Chapter 2: Creating a Generic Method
Creating a button to exchange and then comparing two values
Writing a swap function
Chapter review
Summary
Chapter 3: Implementing a Generic Interface to Accomplish Sorting
Adding a button to sort and display results
Creating a generics interface class
Entering the reference code
Chapter review
Summary
Chapter 4: Making Delegates More Flexible with Generics
Adding a summarize button to the HTML
Summary
Chapter 5: Creating and Using Generic Dictionaries
Adding a show button to the HTML
Starting a process from a web page
Making a directory and creating a file from Command Prompt
Chapter review
Summary
Chapter 6: Connection Between Delegates and Lambda Expressions
Adding a Show Results button to the HTML
Adding delegates
Chapter review
Summary
Chapter 7: Expression-Bodied Lambdas and Expression-Bodied Members
Adding a box and a Find Max button to the HTML
Making the delegate
Chapter review
Summary
Chapter 8: Anonymous Methods and Objects That Run Their Own Delegates
Adding a Show Results button to the HTML
Streamlining writing functions
Chapter review
Summary
Chapter 9: C# with LINQ and Built-In Types
Adding a Show Values button to the HTML
Adding namespaces
Chapter review
Summary
Chapter 10: C# with LINQ and Custom Data Types
Adding a Show People button to the HTML
Setting up a database
Chapter review
Summary
Chapter 11: Using Query Syntax to Construct Queries
Adding a show button to the HTML
Creating a decimal salary array
Observing deferred execution
Chapter review
Summary
Chapter 12: Queries That Perform Aggregation Functions
Adding a show button to the HTML
Creating an array
Chapter review
Summary
Chapter 13: Using LINQ to Summarize Tuples
Adding a show tuple summary values button to the HTML
Introducing tuples
Chapter review
Summary
Chapter 14: Summarizing Results with Grouping
Adding a Show Results button to the HTML
Adding namespaces
Chapter review
Summary
Chapter 15: Joining Datasets with Inner Joins
Adding a Join Classes button to the HTML
Adding the namespaces
Chapter review
Summary
Chapter 16: Downloading, Installing, and Running SQL Server 2017
Downloading SQL Server 2017 express
Working with SQL server inside Visual Studio
Chapter review
Summary
Chapter 17: Writing Code to Manually Connect to a Table and Retrieve Records
Adding a show records button to the HTML
Making the connection string
Chapter review
Summary
Chapter 18: Inserting Records into Tables Using Stored Procedures
Adding text boxes and a button to the HTML
Reviewing what you created already in SQL Server
Chapter review
Summary
Chapter 19: Using the Nullable Feature to Make Apps More Stable
Adding a Show People button to the HTML
Chapter review
Summary
Chapter 20: Connecting a Chart Control to SQL Server
Placing a chart into the HTML page
Adding a new table to the People database
Coding the project
Chapter review
Summary
Chapter 21: Using LINQ to Operate on Tables from SQL Server
Changing the data in the ExperimentValues table
Chapter review
Summary
Chapter 22: Creating a Page That Saves Text to Disk
Creating an application to save text
Chapter review
Summary
Chapter 23: Creating a Page That Uses the File Upload Control
Starting our project from scratch
Chapter review
Summary
Chapter 24: Serializing and Deserializing Objects
Adding two buttons to the HTML
Chapter review
Summary
Chapter 25: Having a Little Fun with Images with Pixel Manipulations
Manipulating an image
Chapter review
Summary
Chapter 26: Saving an Image to SQL Server
Adding buttons and a list box to HTML
Chapter review
Summary
Chapter 27: Creating and Using an XML File
Adding a button to HTML
Chapter review
Summary
Chapter 28: Creating XML Files with C#
Adding a button to HTML
Chapter review
Summary
Chapter 29: Querying XML Documents with LINQ
Adding a text box and a button to HTML
Chapter review
Summary

What You Will Learn

  • Learn C# advanced language elements and techniques
  • Discover advanced C# techniques with hands-on working examples
  • Build on your knowledge of OOP by using C# generics and lambda expressions
  • Work with C# and LINQ custom data types
  • Program C# and SQL Server 2017 to manage and query data
  • Create your first full MVC application

Authors

Table of Contents

Chapter 1: Creating a Simple Generics Class
Creating a generics class
Adding a button to Default.aspx
Initializing a collection of integers to their array and displaying the results
Chapter review
Summary
Chapter 2: Creating a Generic Method
Creating a button to exchange and then comparing two values
Writing a swap function
Chapter review
Summary
Chapter 3: Implementing a Generic Interface to Accomplish Sorting
Adding a button to sort and display results
Creating a generics interface class
Entering the reference code
Chapter review
Summary
Chapter 4: Making Delegates More Flexible with Generics
Adding a summarize button to the HTML
Summary
Chapter 5: Creating and Using Generic Dictionaries
Adding a show button to the HTML
Starting a process from a web page
Making a directory and creating a file from Command Prompt
Chapter review
Summary
Chapter 6: Connection Between Delegates and Lambda Expressions
Adding a Show Results button to the HTML
Adding delegates
Chapter review
Summary
Chapter 7: Expression-Bodied Lambdas and Expression-Bodied Members
Adding a box and a Find Max button to the HTML
Making the delegate
Chapter review
Summary
Chapter 8: Anonymous Methods and Objects That Run Their Own Delegates
Adding a Show Results button to the HTML
Streamlining writing functions
Chapter review
Summary
Chapter 9: C# with LINQ and Built-In Types
Adding a Show Values button to the HTML
Adding namespaces
Chapter review
Summary
Chapter 10: C# with LINQ and Custom Data Types
Adding a Show People button to the HTML
Setting up a database
Chapter review
Summary
Chapter 11: Using Query Syntax to Construct Queries
Adding a show button to the HTML
Creating a decimal salary array
Observing deferred execution
Chapter review
Summary
Chapter 12: Queries That Perform Aggregation Functions
Adding a show button to the HTML
Creating an array
Chapter review
Summary
Chapter 13: Using LINQ to Summarize Tuples
Adding a show tuple summary values button to the HTML
Introducing tuples
Chapter review
Summary
Chapter 14: Summarizing Results with Grouping
Adding a Show Results button to the HTML
Adding namespaces
Chapter review
Summary
Chapter 15: Joining Datasets with Inner Joins
Adding a Join Classes button to the HTML
Adding the namespaces
Chapter review
Summary
Chapter 16: Downloading, Installing, and Running SQL Server 2017
Downloading SQL Server 2017 express
Working with SQL server inside Visual Studio
Chapter review
Summary
Chapter 17: Writing Code to Manually Connect to a Table and Retrieve Records
Adding a show records button to the HTML
Making the connection string
Chapter review
Summary
Chapter 18: Inserting Records into Tables Using Stored Procedures
Adding text boxes and a button to the HTML
Reviewing what you created already in SQL Server
Chapter review
Summary
Chapter 19: Using the Nullable Feature to Make Apps More Stable
Adding a Show People button to the HTML
Chapter review
Summary
Chapter 20: Connecting a Chart Control to SQL Server
Placing a chart into the HTML page
Adding a new table to the People database
Coding the project
Chapter review
Summary
Chapter 21: Using LINQ to Operate on Tables from SQL Server
Changing the data in the ExperimentValues table
Chapter review
Summary
Chapter 22: Creating a Page That Saves Text to Disk
Creating an application to save text
Chapter review
Summary
Chapter 23: Creating a Page That Uses the File Upload Control
Starting our project from scratch
Chapter review
Summary
Chapter 24: Serializing and Deserializing Objects
Adding two buttons to the HTML
Chapter review
Summary
Chapter 25: Having a Little Fun with Images with Pixel Manipulations
Manipulating an image
Chapter review
Summary
Chapter 26: Saving an Image to SQL Server
Adding buttons and a list box to HTML
Chapter review
Summary
Chapter 27: Creating and Using an XML File
Adding a button to HTML
Chapter review
Summary
Chapter 28: Creating XML Files with C#
Adding a button to HTML
Chapter review
Summary
Chapter 29: Querying XML Documents with LINQ
Adding a text box and a button to HTML
Chapter review
Summary

Book Details

ISBN 139781788294263
Paperback310 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

C# 7.1 and .NET Core 2.0 – Modern Cross-Platform Development - Third Edition Book Cover
C# 7.1 and .NET Core 2.0 – Modern Cross-Platform Development - Third Edition
$ 31.99
$ 16.00
Practical Test-Driven Development using C# 7 Book Cover
Practical Test-Driven Development using C# 7
$ 39.99
$ 20.00
Beginning C# 7 Hands-On – The Core Language Book Cover
Beginning C# 7 Hands-On – The Core Language
$ 31.99
$ 16.00
Learning Node.js Development Book Cover
Learning Node.js Development
$ 31.99
$ 16.00
Azure for Architects Book Cover
Azure for Architects
$ 35.99
$ 18.00
Architecting Modern Java EE Applications Book Cover
Architecting Modern Java EE Applications
$ 39.99
$ 20.00