Test Your Skills in C# Programming
62,99 €
Sofort verfügbar, Lieferzeit: Sofort lieferbar
Test Your Skills in C# Programming, Apress
Review and Analyze Important Features of C#
Von Vaskaran Sarcar, im heise Shop in digitaler Fassung erhältlich
Produktinformationen "Test Your Skills in C# Programming"
Review the fundamental constructs in C# using Q&As and program segments to boost your confidence and gain expertise. This book will help you analyze your programs more efficiently and enhance your programming skills.
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
WHO THIS IS BOOK FOR
Programmers with basic knowledge of C#
VASKARAN SARCAR obtained his Master of Engineering in software engineering from Jadavpur University, Kolkata (India) and an MCA from Vidyasagar University, Midnapore (India). He was a National Gate Scholar (2007-2009) and has more than 12 years of experience in education and the IT industry. Vaskaran devoted his early years (2005-2007) to the teaching profession at various engineering colleges, and later he joined HP India PPS R&D Hub Bangalore. He worked there until August 2019. At the time of his retirement from HP, he was a Senior Software Engineer and Team Lead at HP. To follow his dream and passion, Vaskaran is now an independent full-time author. Other Apress books by him include: _Java Design Patterns Third Edition, _Simple and Efficient Programming in C#, _Design Patterns in C# Second Edition, __Getting Started with Advanced C#, __Interactive Object-Oriented Programming in Java Second Edition,__ __Java Design Patterns Second Edition, __Design Patterns in C#, __Interactive C#, __Interactive Object-Oriented Programming in Java, _Java Design Patterns.
PART I FUNDAMENTALS
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 ARRAYS
CHAPTER 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 STRUCTURES
CHAPTER 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 PROGRAMMING
CHAPTER 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 NA
CHAPTER 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: Polymorphism
CHAPTER 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 NA
Chapter 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 NA
Chapter 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 Concepts
Chapter 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: Events
CHAPTER 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: Lambdas
CHAPTER 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: GENERICS
CHAPTER 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: MULTITHREADING
Chapter 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: MISCELLANEOUS
CHAPTER 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
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
WHO THIS IS BOOK FOR
Programmers with basic knowledge of C#
VASKARAN SARCAR obtained his Master of Engineering in software engineering from Jadavpur University, Kolkata (India) and an MCA from Vidyasagar University, Midnapore (India). He was a National Gate Scholar (2007-2009) and has more than 12 years of experience in education and the IT industry. Vaskaran devoted his early years (2005-2007) to the teaching profession at various engineering colleges, and later he joined HP India PPS R&D Hub Bangalore. He worked there until August 2019. At the time of his retirement from HP, he was a Senior Software Engineer and Team Lead at HP. To follow his dream and passion, Vaskaran is now an independent full-time author. Other Apress books by him include: _Java Design Patterns Third Edition, _Simple and Efficient Programming in C#, _Design Patterns in C# Second Edition, __Getting Started with Advanced C#, __Interactive Object-Oriented Programming in Java Second Edition,__ __Java Design Patterns Second Edition, __Design Patterns in C#, __Interactive C#, __Interactive Object-Oriented Programming in Java, _Java Design Patterns.
PART I FUNDAMENTALS
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 ARRAYS
CHAPTER 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 STRUCTURES
CHAPTER 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 PROGRAMMING
CHAPTER 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 NA
CHAPTER 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: Polymorphism
CHAPTER 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 NA
Chapter 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 NA
Chapter 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 Concepts
Chapter 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: Events
CHAPTER 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: Lambdas
CHAPTER 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: GENERICS
CHAPTER 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: MULTITHREADING
Chapter 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: MISCELLANEOUS
CHAPTER 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
Artikel-Details
- Anbieter:
- Apress
- Autor:
- Vaskaran Sarcar
- Artikelnummer:
- 9781484286555
- Veröffentlicht:
- 28.09.22
Barrierefreiheit
This PDF does not fully comply with PDF/UA standards, but does feature limited screen reader support, described non-text content (images, graphs), bookmarks for easy navigation and searchable, selecta
- keine Vorlesefunktionen des Lesesystems deaktiviert (bis auf) (10)
- navigierbares Inhaltsverzeichnis (11)
- logische Lesereihenfolge eingehalten (13)
- kurze Alternativtexte (z.B für Abbildungen) vorhanden (14)
- Inhalt auch ohne Farbwahrnehmung verständlich dargestellt (25)
- hoher Kontrast zwischen Text und Hintergrund (26)
- Navigation über vor-/zurück-Elemente (29)
- alle zum Verständnis notwendigen Inhalte über Screenreader zugänglich (52)
- Kontakt zum Herausgeber für weitere Informationen zur Barrierefreiheit (99)