售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
Title Page
Copyright
Learn C# in 7 days
Credits
About the Author
About the Reviewer
www.PacktPub.com
Why subscribe?
Customer Feedback
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
Day 01 - Overview of the .NET Framework
What is programming?
What is .NET?
What is .NET Core?
.NET Core features
What makes .NET Core?
What is .NET Standard?
Available IDEs and editors for C#
Setting up the environment
Hands - on exercises
Revisiting Day 01
Day 02 - Getting Started with C#
Introduction to C#
History of the C# language
Understanding a typical C# program
1 (System)
3 (Day02)
2 (Program)
4 (Main)
5 (Day02)
6 (Day02)
7 (Dependencies)
8 (Program.cs)
Deep-dive into application using Visual Studio
Discussing code
Color
Beep
An overview of C# reserved keywords, types, and operators
Identifiers
Contextual
Types
Value type
Data types
Reference type
Pointer type
Null type
Operators
Discussing operator precedence in C#
Operator overloading
An overview of type conversion
Implicit conversion
Explicit conversion
Understanding statements
Declarative statement
Expression statement
Selection statement
The if statement
The if..else statement
if...else if...else statement
Nested if statement
Switch statement
Iteration statement
The do...while loop
The while loop
The for loop
The foreach loop
The jump statement
break
continue
default
Exception-handling statement
Arrays and string manipulations
Arrays
Types of arrays
Single-dimensional array
Multidimensional array
Jagged array
Strings
Structure versus class
Hands-on exercise
Revisiting day 2
Day 03 - What's New in C#
Tuples and deconstruction
Tuples
The System.ValueTuple struct
Deconstruction
Tuple – important points to remember
Pattern matching
is expression
switch statement
constant pattern
type pattern
When clause in case expression
Local functions
Literal improvements
Binary literals
Digit separator
Async Main
Restrictions while using new signatures
Default expressions
Member variables
Constants
Infer tuple names
Other features supposed to release
Pattern-matching with generics
Reference assemblies
Hands-on exercises
Revisiting Day 03
Day 04 - Discussing C# Class Members
Modifiers
Access modifiers and accessibility levels
public
protected
internal
composite
private
Rules for the access modifier
abstract
Rules of the abstract modifier
async
const
event
extern
new
override
partial
readonly
sealed
static
Rules for the static modifier
unsafe
virtual
Methods
How to use a method?
Properties
Types of properties
Read-write property
Read-only property
Computed property
Block-bodied members
Expression-bodied members
Property using validation
Indexers
File I/O
FileStream
Exception handling
try block
catch block
finally block
Different compiler-generated exceptions in catch block
User-defined exceptions
Discussing a regular expression and its importance
The Importance of a regular expression
Flexible
Constructs
Special characters
The period sign (.)
The word sign (w)
The space sign (s)
The digit sign (d)
The hyphen sign (-)
Specifying the number of matches
Hands-on exercise
Revisiting Day 04
Day 05 - Overview of Reflection and Collections
What is reflection?
Reflection in use
Getting type info
Overview of delegates and events
Delegates
Declaring a delegate type
Instances of delegate
Delegates in use
Events
Declaring an event
Collections and non-generics
ArrayList
Declaration of ArrayList
Properties
Methods
HashTable
Declaration of HashTable
Properties
Methods
SortedList
Declaration of SortedList
Properties
Methods
Stack
Declaration of Stack
Properties
Methods
Queue
Declaration of Queue
Properties
Methods
BitArray
Hands - on exercise
Revisiting Day 05
Day 06 - Deep Dive with Advanced Concepts
Playing with collections and generics
Understanding collection classes and their usage
Performance - BitArray versus boolArray
Understanding generics and their usage
Collections and generics
Why should we use generics?
Discussing constraints
The value type
The reference type
The default constructor
The base class constraint
The interface constraint
Beautifying code using attributes
Types of attributes
AttributeUsage
Obsolete
Conditional
Creating and implementing a custom attribute
Prerequisites
Leveraging preprocessor directives
Important points
Preprocessor directives in action
Getting started with LINQ
Writing unsafe code
Writing asynchronous code
Hands-on exercises
Revisiting Day 6
Day 07 - Understanding Object-Oriented Programming with C#
Introduction to OOP
Discussing Object relations
Inheritance
Understanding inheritance
Types of inheritance
Member visibility in inheritance
Implementing inheritance
Implementing multiple inheritance in C#
Abstraction
Implementing abstraction
Abstract class
Features of abstract class
Interface
Features of interface
Encapsulation
What are access modifier in C#?
Implementing encapsulation
Polymorphism
Types of polymorphism
Implementing polymorphism
Hands on Exercise
Revisiting Day 7
What next?
Day 08 - Test Your Skills – Build a Real-World Application
Why are we developing this application?
Getting started with application development
Prerequisites
The database design
Overview
Discussing the basic architecture
Revisiting day 08
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜