Ưu đãi trong tuần: Nhập mã UD50 giảm 50k cho đơn từ 300k!
Trang chủ
Menu

What's New in C#7—14

Có Gì Mới Trong C#7—14

Có Gì Mới Trong C#7—14

Tìm hiểu các tính năng mới nhất của C#7

4.4
(2,160 đánh giá)
13,007 học viên
Giảng viên
Dmitri Nesteruk
Phụ đề Việt chất lượng cao Phụ đề tiếng Anh Bán chạy Đánh giá cao
50.000đ 419.000đ -88%
✓ Xem giỏ hàng và thanh toán
Bao gồm phụ đề tiếng Việt, tiếng Anh
5.0 giờ video
42 bài giảng
Truy cập vĩnh viễn
Học trên mọi thiết bị
Cập nhật: 30/05/2026

Bạn sẽ học được gì

Hiểu và đánh giá cao các tính năng ngôn ngữ của C#7, C#8 và C#9
Học cách sử dụng các tính năng ngôn ngữ mới trong thực tế

Yêu cầu

Kiến thức về C# 6 và các phiên bản trước

Đối tượng phù hợp

Dành cho lập trình viên .NET/C# mới bắt đầu và có kinh nghiệm

Nội dung khóa học

9 phần • 42 bài giảng
1 Giới thiệu
1 Biến Out
2 Pattern Matching
3 Tuples
4 Deconstruction
5 Hàm Cục bộ (Local Functions)
6 Ref Returns và Biến Cục bộ Ref
7 Thành viên Expression Bodied
8 Biểu thức Throw
9 Kiểu Trả về Async Tổng quát
10 Cải tiến Literal
1 Tại Sao Chương Trình C#7.1 Của Tôi Không Biên Dịch?!?
2 Async Main
3 Biểu thức Mặc định (Default Expressions)
4 Ref Assemblies
5 Suy luận Tên Tuple
6 Pattern-Matching với Generics
1 Leading Digit Separators
2 Bổ từ Truy cập 'private protected'
3 Đối số có tên không ở cuối (Non-trailing named arguments)
4 Tham số 'in'
5 Biến 'ref readonly'
6 'ref struct' và Span
7 Demo về Span
1 Cải thiện Hiệu suất
2 Nâng cấp Tính năng
3 Tính năng Trình biên dịch Mới
4 Bài giảng Thêm: Các Khóa học Khác với Ưu đãi
1 Kiểu Tham chiếu Nullable
2 Chỉ mục và Phạm vi (Indices and Ranges)
3 Thành viên Giao diện Mặc định
4 Pattern Matching
1 Giới thiệu
2 Kiểu Record
3 Lệnh Gọi Cấp Cao nhất (Top-Level Calls)
4 Bộ thiết lập Khởi tạo (Initial Setters)
5 Cải tiến Pattern Matching
6 Target-Typed New
7 Bộ tạo Mã nguồn (Source Generators)
8 Cú pháp Phương thức Một phần và Trình khởi tạo Mô-đun
1 Có Gì Mới Trong C# 10
1 Có Gì Mới Trong C# 14

Giới thiệu khóa học

This short course covers the latest and greatest features of C#, covering versions 7, 7.1, 7.2, 7.3, 8.0, 9.0 and 10.0 of the language that are being sim-shipped with corresponding Visual Studio updates.

Course Topics

Here's every language feature presented in this course, grouped by the version of the C# language.

C# 7:

  • Out Variables

  • Pattern Matching (is and switch expressions)

  • Tuples and Tuple Deconstruction

  • Local Functions

  • Ref Returns and Locals

  • Expression Bodied Members

  • Throw Expressions

  • Generalized Async Return Types

  • Literal Improvements

C# 7.1:

  • How to turn on C# 7.1 support

  • Async Main

  • Default Expressions

  • Ref Assemblies

  • Infer Tuple Names

  • Pattern-Matching with Generics

C# 7.2:

  • Leading Digit Separators

  • 'Private Protected' Access Modifier

  • Non-Trailing Named Arguments

  • Reference Semantics on Value Types:

    • 'In' Parameters

    • 'Ref Readonly' Variables

    • 'Ref Struct' and Span

C# 7.3:

  • Performance improvements

    • Access fixed fields without pinning

    • Reassign ref local variables

    • Use initializers on stackalloc arrays 

    • Use fixed statements on any type that supports a pattern 

  • Enhancements to existing features 

    • Tuple == and != support 

    • Use expression variables in more locations 

    • Attach attributes to backing field of auto-properties 

    • Improved method resolution when arguments differ by 'in' 

    • Improved overload resolution 

  • New compiler options: 

    • deterministic

    • publicsign

    • pathmap

C# 8:

  • Nullable Reference Types

  • Indices and Ranges

  • Default Interface Members

  • Pattern Matching

C# 9:

  • Record Types

  • Top-Level Calls

  • Initial Setters

  • Pattern Matching Improvements (type patterns, parenthesized patterns, conjunctive and, disjunctive or, negated not, relational patterns)

  • Performance and Interop (Native sized integers (nint/nuint), function pointers, SkipLocalsInit)

  • Fit and Finish (target-typed new, target type resolution of conditional expressions, static modifier for lambda expressions and anonymous methods, covariant return types, foreach GetEnumerator() use, discards as parameters to lambdas, attributes on local functions)

  • C# Code Generators (partial method syntax, module initializers)

C# 10:

  • Record Structs

  • Global Using Directives

  • File-Scoped Namespace Declarations

  • Extended Property Patterns

  • Generic Attributes

  • Lambda Improvements (attributes, explicit return types, natural type inference)

  • Enhanced #line directives

Prerequisites

  • Knowledge and understanding of C# 6 and earlier

  • General experience in .NET/C# application development

Learning Outcomes

  • An understanding and appreciation of latest C# 7/7.1/7.2/7.3/8/9 language features

  • Understanding of how to convert existing C# code to C# 7/7.1/7.2/7.3/8/9

C# 14:

  • Extension members

  • User-defined compound assignment

  • Field keyword

  • Partial events and constructors

  • Nameof support

  • Implicit conversions for Span/ReadOnlySpan

  • Modifiers on simple lambda parameters

  • Null-conditional assignment

Khóa học liên quan

Khám phá thêm các khoá học cùng chủ đề

Hiển thị tất cả khoá học C Sharp
Hiển thị tất cả khoá học Dot Net
Hiển thị tất cả khoá học Programming Languages
Hiển thị tất cả khoá học Software Development
Zalo
Tôi có thể tư vấn khoá học cho bạn 😊