万本电子书0元读

万本电子书0元读

顶部广告

Learn C# in 7 days电子书

售       价:¥

9人正在读 | 0人评论 9.8

作       者:Gaurav Aroraa

出  版  社:Packt Publishing

出版时间:2017-10-06

字       数:30.3万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Learn C# in 7 days with practical examples, build a foundation for C# programming, and boost your skills to an advanced level About This Book ? Learn the basics of C# in 7 days ? Works as a reference guide describing the major features of C# ? Build easy and simple code through real-world example scenarios Who This Book Is For The book is for aspiring developers and absolute novices who want to get started with the world of programming. You do not need any knowledge of C# for this book. What You Will Learn ? Understand and set up the .NET environment ? Code in C# using the Visual Studio 2017 RC (preferable community edition) IDE ? Define variables, syntax, control flows, statements, and arrays etc through examples ? Understand the concepts of Object-Oriented Programming using C# ? Get acquainted with attributes, collection, generics, and LINQ ? Get your hands on class members such as Modifiers, Methods, Properties, Indexers, File I/O, Exception Handling, and Regex ? Build a real-world application using C# 7 In Detail This book takes a unique approach to teach C# to absolute beginners. You’ll learn the basics of the language in seven days. It takes a practical approach to explain the important concepts that build the foundation of the C# programming language. The book begins by teaching you the basic fundamentals using real-world practical examples and gets you acquainted with C# programming. We cover some important features and nuances of the language in a hands-on way, helping you grasp the concepts in a fluid manner. Later, you’ll explore the concepts of Object-Oriented Programming (OOP) through a real-world example. Then we dive into advanced-level concepts such as generics and collections, and you’ll get acquainted with objects and LINQ. Towards the end, you’ll build an application that covers all the concepts explained in the book. By the end of this book, you will have next-level skills and a good knowledge of the fundamentals of C#. Style and approach Fast paced guide to get you up-to-speed with the language. Every chapter is followed by an exercise that focuses on building something with the language. The codes of the exercises can be found on the Packt website
目录展开

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

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部