Share c# ^2

hieuvanho

New member
#csharp #Programming #tutorial #development #Learn ** C #9.0: Có gì mới? **

C# 9.0, phiên bản mới nhất của ngôn ngữ lập trình hướng đối tượng phổ biến của Microsoft, đã được phát hành vào tháng 11 năm 2020. Bản phát hành mới mang đến một số tính năng và cải tiến mới, bao gồm:

*** Kết hợp mẫu: ** C# 9.0 giới thiệu khớp mẫu, cho phép bạn khớp với giá trị với một mẫu và sau đó thực hiện các hành động khác nhau dựa trên trận đấu.Điều này có thể được sử dụng để cải thiện khả năng đọc và hiệu quả của mã của bạn.
*** Toán tử kết hợp NULL: ** Toán tử Null Coalescing (??) cho phép bạn gán giá trị mặc định cho một biến nếu nó là NULL.Điều này có thể giúp ngăn ngừa lỗi trong mã của bạn.
*** Các cải tiến tái cấu trúc: ** C# 9.0 bao gồm một số cải tiến cho các công cụ tái cấu trúc, giúp việc đổi tên biến dễ dàng hơn, di chuyển mã xung quanh và thực hiện các thay đổi khác đối với mã của bạn.
*** Các tính năng ngôn ngữ mới: ** C# 9.0 cũng bao gồm một số tính năng ngôn ngữ mới, chẳng hạn như khả năng xác định các phương thức giao diện mặc định và khả năng sử dụng `var` với các loại chung.

Đây chỉ là một vài trong số các tính năng mới trong C# 9.0.Để biết thêm thông tin, vui lòng xem ghi chú phát hành [C# 9.0] (https://docs.microsoft.com/en-us/dotnet/csharp/release-notes/net-5.0).

** Hashtags: **

* #csharp9
* #csharp
* #Programming
* #phát triển
* #Học hỏi
=======================================
#csharp #Programming #tutorial #development #Learn **C# 9.0: What's New?**

C# 9.0, the latest version of Microsoft's popular object-oriented programming language, was released in November 2020. The new release brings a number of new features and improvements, including:

* **Pattern matching:** C# 9.0 introduces pattern matching, which allows you to match a value against a pattern and then take different actions based on the match. This can be used to improve the readability and efficiency of your code.
* **Null coalescing operator:** The null coalescing operator (??) allows you to assign a default value to a variable if it is null. This can help to prevent errors in your code.
* **Refactoring improvements:** C# 9.0 includes a number of improvements to the refactoring tools, making it easier to rename variables, move code around, and make other changes to your code.
* **New language features:** C# 9.0 also includes a number of new language features, such as the ability to define default interface methods and the ability to use `var` with generic types.

These are just a few of the new features in C# 9.0. For more information, please see the [C# 9.0 release notes](https://docs.microsoft.com/en-us/dotnet/csharp/release-notes/net-5.0).

**Hashtags:**

* #csharp9
* #csharp
* #Programming
* #development
* #Learn
 
Join Telegram ToolsKiemTrieuDoGroup
Back
Top