
Test Your Skills in C# Programming: Review and Analyze Important Features of C#
Vaskaran Sarcar
Résumé
The book is divided into three parts, where you will learn the fundamentals, object-oriented programming, and some advanced features of C#. In the first part, you will review C# and .NET basics along with the important constructs such as strings, arrays, and structures. In the second part, you'll review the concepts of object-oriented programming in detail. Here, you will go through various program segments in class and objects, inheritance, polymorphism, abstraction, encapsulation, and much more. You will also analyze the output of the given programs with the help of Q&A sections. The uses of interfaces, static class, and exception handling are discussed in the book along with some other important concepts in C#. In the third and last part, you will learn advanced features of C# programming such as delegates, events, lambdas, generics, and multithreading. Here, you'll also cover some of the latest features of C#.
After reading this book, you will be able to analyze and apply the basic and frequently used features along with the advanced features of C#.
What Will You Learn
- Understand the core and some of the latest features in C#
- Review your programming skills along with some of the latest features in C#
- Know how object-oriented programming (OOP) is used in C#
- Get up and running on the advanced features of C# such as delegates, lambdas, generics, and more
Programmers with basic knowledge of C#
Chapter 1: Language Basics
Chapter Goal: This chapter discusses the following topics:
The important concepts in .NET
The basic programming constructs in C#.
Use of some useful data types including the var type.
Use of some useful operators and explicit-casting.
Use of the selection statements and case guards.
Use of iteration statements.
Use of the jump statements.
Use of the ternary operator.
No of pages: 28
Sub - Topics N
Chapter 2: String and ArraysChapter Goal:
Once you finish this chapter, you can answer the following questions and related areas:
How can you use string datatype in your program?
How can you use the common in-built methods from the String class?
How a String variable is different from a StringBuilder?
How can you convert a string to an int?
How can you use nullable reference type in a program?
How to create arrays in C#?
What are the different types of C# arrays and how to use them?
How to use common in-built methods from the System.Array class?
How can you iterate over a string or an array?
No of pages 23
Sub - Topics NA
Chapter 3: Enumeration and StructuresChapter Goal: This chapter discusses the following topics:
The enum fundamentals
Flags enumeration
Defaut value expressions
The struct fundamentals
Non-destructive mutations
No of pages : 26
Sub - Topics NA
Part II Object-Oriented ProgrammingChapter 4: Class and Objects
Chapter Goal: This chapter focuses on the following topics:
Classes and objects creations.
Instance fields and methods.
Constructors and their usage.
Optional parameters.
Object initializers.
Nested classes.
The uses of private, internal, and public modifiers inside a class.
No of pages : 17
Sub - Topics NAChapter 5: Inheritance
Chapter Goal: This chapter covers the following topics:
Inheritance and types.
Method and constructor overloading.
Method overriding.
Use of virtual, override, and new keywords.
Use of the sealed keyword.
Introductory discussion on covariance and contravariance
No of pages 33
Sub - Topics NA
Chapter 6: PolymorphismChapter Goal: This chapter helps you to review:
Polymorphism and its benefits.
Abstract classes and their uses.
Interfaces and their uses.
Different types of interfaces.
Writing polymorphic codes using abstract classes and interfaces
No of pages : 30
Sub - Topics NAChapter 7: Encapsulation
Chapter Goal: This chapter covers the following topics:
What is encapsulation? How is it different from an abstraction?
Properties and their usage.
Different ways to create a property.
The usage of the get and set accessors.
Virtual and abstract properties.
The discussion of the init accessor.
Indexers and their usage.
How can the indexers and properties work with an interface?
Discussion on different aspects of properties and indexers.
No of pages : 26
Sub - Topics NAChapter 8: Exception Handling
Chapter Goal: This chapter covers the following topics:
Exception and its uses in C# programming.
Use of the try, catch, and finally blocks.
Use of multiple catch blocks in a program.
Use of a general catch block.
How to throw and re-throw an exception.
Use of exception filters.
Custom exception class and its usage.
No of pages : 23
Sub - Topics NA
Chapter 9: Useful ConceptsChapter Goal: Q&A and program segments on some useful constructs such as casting and boxing, static class and methods, passing value type by value, passing value type by references(using ref and out keyword), extension methods, and so on.
No of pages : 15-25+
Sub - Topics NA
Part III Advanced Features Chapter 10: Delegates
Chapter Goal: This chapter covers the following topics:
Delegates and their uses
Multicast delegates
Some commonly used in-built delegates
Covariance and contravariance using delegates
No of pages : 20
Sub - Topics NA
Chapter 11: EventsChapter Goal: This chapter helps you to review your understanding of events and discusses the following:
Events creation and their uses.
How to pass the event data.
Use of event accessors.
Use of interface events (both implicit and explicit).
Simplified coding with events.
No of pages : 22
Sub - Topics NA
Chapter 12: LambdasChapter Goal: This chapter focuses on this and covers the following topics:
Lambda expressions and their use
Expression-bodied members
Use of local variables inside lambda expressions.
Event handling using lambda expressions.
Use of a static lambda.
Understanding natural type.
No of pages : 22
Sub - Topics NA
Chapter 13: GenericsChapter Goal: This chapter focuses on the following topics:
The motivation behind generics.
The fundamentals of generic programs.
Use of generic interfaces.
Use of generic constraints.
Use of covariance and contravariance using generics.
Self-referencing generic type.
Experimenting with generic method's overloading and overriding.
Analyzing the static data in the context of generics.
No of pages : 35
Sub - Topics NA
Chapter 14: MultithreadingChapter Goal: Upon completion of this chapter, you'll be able to answer the following questions:
What are the threads and how can you create them?
What is a multithreaded program? How does it differ from a single-threaded application?
Why are the ThreadStart and ParameterizedThreadStart delegates important in thread programming?
How to block a thread using Sleep or Join methods?
How can you use lambda expressions in a multithreaded program?
How to use important Thread class members?
How a foreground thread is different from a background thread?
What is synchronization and why is it needed?
How can you implement thread safety in C# using lock statements?
How can you implement an alternative approach to lock statements using Monitor's Entry and Exit Method?
What is a deadlock and how can you detect the deadlock in your system?
What is the purpose of using the ThreadPool class? What are the associative pros and cons of using it?
How to cancel a running thread in the managed environment?
And many more.
No of pages : 40
Sub - Topics NA
Chapter 15: MiscellaneousChapter Goal: Q&A and program segments on the related latest features that are covered in the previous chapters and any other important topics(if any).
No of pages : 10-20+
Sub - Topics NA
Caractéristiques techniques
PAPIER | |
Éditeur(s) | Apress |
Auteur(s) | Vaskaran Sarcar |
Parution | 29/09/2022 |
Nb. de pages | 464 |
EAN13 | 9781484286548 |
Avantages Eyrolles.com
Consultez aussi
- Les meilleures ventes en Graphisme & Photo
- Les meilleures ventes en Informatique
- Les meilleures ventes en Construction
- Les meilleures ventes en Entreprise & Droit
- Les meilleures ventes en Sciences
- Les meilleures ventes en Littérature
- Les meilleures ventes en Arts & Loisirs
- Les meilleures ventes en Vie pratique
- Les meilleures ventes en Voyage et Tourisme
- Les meilleures ventes en BD et Jeunesse