Muutke küpsiste eelistusi

E-raamat: Exploring Advanced Features in C#: Enhance Your Code and Productivity

  • Formaat: PDF+DRM
  • Ilmumisaeg: 30-May-2019
  • Kirjastus: APress
  • Keel: eng
  • ISBN-13: 9781484248560
  • Formaat - PDF+DRM
  • Hind: 49,39 €*
  • * hind on lõplik, st. muud allahindlused enam ei rakendu
  • Lisa ostukorvi
  • Lisa soovinimekirja
  • See e-raamat on mõeldud ainult isiklikuks kasutamiseks. E-raamatuid ei saa tagastada.
  • Formaat: PDF+DRM
  • Ilmumisaeg: 30-May-2019
  • Kirjastus: APress
  • Keel: eng
  • ISBN-13: 9781484248560

DRM piirangud

  • Kopeerimine (copy/paste):

    ei ole lubatud

  • Printimine:

    ei ole lubatud

  • Kasutamine:

    Digitaalõiguste kaitse (DRM)
    Kirjastus on väljastanud selle e-raamatu krüpteeritud kujul, mis tähendab, et selle lugemiseks peate installeerima spetsiaalse tarkvara. Samuti peate looma endale  Adobe ID Rohkem infot siin. E-raamatut saab lugeda 1 kasutaja ning alla laadida kuni 6'de seadmesse (kõik autoriseeritud sama Adobe ID-ga).

    Vajalik tarkvara
    Mobiilsetes seadmetes (telefon või tahvelarvuti) lugemiseks peate installeerima selle tasuta rakenduse: PocketBook Reader (iOS / Android)

    PC või Mac seadmes lugemiseks peate installima Adobe Digital Editionsi (Seeon tasuta rakendus spetsiaalselt e-raamatute lugemiseks. Seda ei tohi segamini ajada Adober Reader'iga, mis tõenäoliselt on juba teie arvutisse installeeritud )

    Seda e-raamatut ei saa lugeda Amazon Kindle's. 

Become a more productive programmer by leveraging the newest features available to you in C#. This book highlights the new language features available to you and how to use these and other tools such as Bootstrap, SCSS, and jQuery to enhance your web applications.

Exploring Advanced Features in C# starts with some of the new features of C# 7 such as how to implement local functions, tuples and generalized async return types.  The book also looks at C# 8, where the author demonstrates how to implement nullable reference types, recursive patterns, ranges, indicies, switch expressions, and many more. Next, you go through some of the distinct features of C# that might often be overlooked such as generics, asynchronous programming, and dynamic types. The author demonstrates how to implement these features through clear and concise examples. 
 
Next, you’ll discuss creating responsive web applications using ASP.NET Model View Controller (MVC) where you’ll learn how to combine Bootstrap with jQuery and SCSS to create interactive web applications with a great-looking, user-friendly UI. Moving forward, you will create and run applications on the latest .NET Core version  3.0 as well as  explore some of the features of .NET  Core 3.0. Finally, you will go through  the tips and tricks of Visual Studio 2019 that make  you more productive.

After reading the book, you will be able to implement new features available in C# and learn how to enhance your application development using ASP.NET MVC and .NET Core.



What You Will Learn
  • Implement the new features available in C# 7
  • Enhance your web applications using  ASP.NET MVC, Bootstrap, SCSS, and jQuery 
  • See what C# 8 has to offer with clear code examples  
  • Create and run applications in .NET Core  3.0
Who This Is Book For

C# programmers who have worked with C# for a number of years and who want to keep up to date with the latest advancements of the language .

Arvustused

This volume deals with advanced features of C # (the authors terms), including their interaction with other facets of the language and .NET. The given examples are simple and illustrate concepts in an easy-to-understand manner. The book is a useful guide for experienced C ++ and/or C # programmers. (Anoop Malaviya, Computing Reviews, July 17, 2021)

About the Author xi
About the Technical Reviewer xiii
Acknowledgments xv
Introduction xvii
Chapter 1 C# 7 in Focus
1(54)
Getting Started with Tuples
2(12)
Changing the Default Positional Names for Tuple Values
4(1)
Create Local Tuple Variables in the Return Data
5(1)
Tuple Members as Discrete Variables
6(2)
Instances of Tuple Variables
8(3)
Inferring Tuple Element Names
11(1)
The Ways to Deconstruct Tuples
12(2)
Final Thoughts on Tuples
14(1)
Pattern Matching
14(14)
Using the Is Type Pattern Expression
20(2)
Using Switch Pattern Matching Statements
22(1)
Using When Clauses in Case Expressions
23(4)
Checking for Nulls in Switch Statements
27(1)
Using Out Variables
28(3)
Discards
30(1)
Using Local Functions
31(5)
Generalized Async Return Types
36(8)
So Why Should I Ever Want to Use Task<T>?
44(1)
Throw Expressions
44(3)
Discards
47(6)
Tuples
47(2)
Out Parameters
49(1)
Standalone Discard
50(1)
Pattern Matching
51(2)
Wrapping Up
53(2)
Chapter 2 Exploring C#
55(50)
The History of C#
55(3)
Using and Implementing Abstract Classes
58(6)
Abstract Class Features
58(1)
Abstract Methods
59(1)
Abstract Properties
59(1)
Using Abstract Classes
60(3)
When Do I Use an Abstract Class?
63(1)
Using and Implementing Interfaces
64(7)
Creating the Abstract and Derived Classes
65(2)
Creating the Interfaces
67(1)
Implementing the Interfaces
68(3)
Asynchronous Programming Using Async and Await
71(9)
How Do I Write Async Methods?
71(3)
Under the Hood
74(5)
Some Final Tips
79(1)
Making Use of Extension Methods
80(5)
Checking If a String Is a Valid Integer
81(2)
Extension Methods Are Lower Priority Than Instance Methods
83(2)
Generics
85(12)
Non-generic VehicleCarrier Class
86(3)
Changing VehicleCarrier Class to Be Generic
89(3)
Recap and More on Generics
92(1)
Generics and Collections
92(2)
Generic Interfaces
94(3)
Nullable Type
97(5)
Some Characteristics of Nullable Types
97(1)
Using Nullable Types
98(1)
A Peek Inside Nullable<T>
99(3)
Dynamic Type
102(2)
Wrapping Up
104(1)
Chapter 3 The New Features of C# 8.0
105(20)
Nullable Reference Types
106(5)
Enabling Nullable Reference Types
107(3)
Recap
110(1)
Recursive Patterns
111(2)
Ranges and Indices
113(3)
Switch Expressions
116(4)
Should I Use Switch Expressions?
118(1)
Property Patterns
119(1)
Target-Typed New Expressions
120(1)
Async Streams
121(2)
Using Declarations
123(1)
Wrapping Up
124(1)
Chapter 4 Responsive Web Applications Using ASP.NET MVC
125(64)
Creating Your ASP.NET MVC Application
126(6)
Referencing jQuery and Bootstrap
132(5)
Creating Bundles
135(1)
Referencing Bundles in Views
136(1)
Setting Up and Using SCSS
137(8)
What Exactly Is SCSS?
142(2)
Adding Our Custom CSS File to BundleConfig
144(1)
Creating Models, Controllers, Views and Using Razor
145(21)
What Is a Controller?
145(1)
What Is a View?
146(1)
What Is a Model?
146(1)
What Is Routing?
146(1)
How Routing Works
147(2)
Creating Your Model
149(3)
Creating Your Controller
152(2)
Creating Your View
154(3)
What Is Razor?
157(1)
How to Write Razor
158(1)
Linking Everything Together
159(3)
Add Styling
162(2)
Add Some jQuery
164(2)
Wrapping Up
166(1)
Adding a Plugin
166(9)
Installing Isotope
166(4)
Making Isotope Work
170(5)
Testing Your Responsive Layout Using Chrome
175(4)
Starting with the Developer Tools
175(1)
Breakpoints and Media Queries Using SCSS
176(3)
Debugging Your jQuery Using Chrome Developer Tools
179(9)
Wrapping Up
188(1)
Chapter 5 Getting Started with NET Core 3.0
189(32)
Creating NET Core Apps in Visual Studio 2019
190(3)
What Is New in NET Core 3.0
193(11)
Windows Desktop
193(5)
Support for C# 8.0
198(1)
Default Executables
199(2)
Fast Built-In JSON Support
201(1)
Cryptography
202(2)
Installing .NET Core 3.0 Preview on Linux with Snap
204(1)
Create and Run an ASP.NET MVC App on Linux
205(3)
Edit Your ASP.NET Core MVC App on Linux with Visual Studio Code
208(4)
Editing Your Project
209(3)
Debug YourASP.NET Core MVC Project with Visual Studio Code
212(7)
Wrapping Up
219(2)
Chapter 6 Being More Productive in Visual Studio
221(62)
New Features in Visual Studio 2019
222(11)
Ul Improvements
222(3)
Search Improvements
225(2)
Cleaning Up Your Code
227(3)
Debugging Improvements
230(1)
Per-Monitor Aware Rendering
231(1)
Free/Paid/Trial Extensions
232(1)
Visual Studio Live Share
233(16)
Sharing Your Code
234(7)
When You Are Having Trouble Signing In
241(3)
Sharing Terminals
244(4)
Some Notes on Live Share
248(1)
Refactorings and Code Fixes
249(8)
Convert foreach to LINQ (VS2019 Only)
249(4)
Convert to Interpolated String
253(1)
Convert Anonymous Type to Class
253(3)
Converting a Local Function to Method
256(1)
Enable JavaScript Debugging in ASP.NET Projects
257(5)
Exporting Your Editor Settings
262(3)
Visual Studio IntelliCode Using AI
265(6)
General Visual Studio Tips
271(10)
Using Live Unit Tests
272(5)
Generate Classes from XML and JSON
277(2)
C# Interactive
279(2)
Wrapping Up
281(2)
Index 283
Dirk Strauss is a software developer and Microsoft .NET MVP from South Africa with over 13 years of programming experience. He has extensive experience in SYSPRO Customization (an ERP system), with C# and web development being his main focus. He currently works as a full stack developer with Embrace. He studied at the Nelson Mandela University where he wrote software part time to gain a better understanding of the technology. He remains passionate about writing code and imparting what he learns with others.