Nguồn tham khảo chính thức
Ghi nhớ nhanh
Phần tiêu đề “Ghi nhớ nhanh”Trang này gom nguồn chính thức để tra sâu sau khi xem cheat sheet. Ưu tiên Microsoft Learn cho C#/.NET/ASP.NET Core/EF Core và Unity Scripting API cho Unity.
C# cơ bản
Phần tiêu đề “C# cơ bản”| Chủ đề | Nguồn |
|---|---|
| Type system, value/reference type | The C# type system |
| Keyword và contextual keyword | C# keywords |
| Operators, precedence | C# operators and expressions |
| Selection statements | if and switch statements |
| Iteration statements | for, foreach, do, while |
| Methods | Methods - C# Programming Guide |
API thường dùng
Phần tiêu đề “API thường dùng”| Chủ đề | Nguồn |
|---|---|
string | String class |
DateTime | DateTime struct |
| Collection generic | System.Collections.Generic |
| Exception handling | Exception-handling statements |
| LINQ | Language Integrated Query |
| Async scenarios | Asynchronous programming scenarios |
.NET và backend
Phần tiêu đề “.NET và backend”| Chủ đề | Nguồn |
|---|---|
| .NET CLI | .NET CLI overview |
| Minimal API | Minimal APIs overview |
| Middleware | ASP.NET Core Middleware |
| Dependency Injection | Dependency injection in ASP.NET Core |
| EF Core overview | Overview of Entity Framework Core |
| EF Core migrations | Managing migrations |
Unity C#
Phần tiêu đề “Unity C#”| Chủ đề | Nguồn |
|---|---|
MonoBehaviour | MonoBehaviour |
Start | MonoBehaviour.Start |
Update | MonoBehaviour.Update |
| Coroutine | StartCoroutine |
Rigidbody | Rigidbody |
Object.Instantiate | Object.Instantiate |
Object.Destroy | Object.Destroy |
Cách dùng nguồn
Phần tiêu đề “Cách dùng nguồn”- Xem cheat sheet để nhớ cú pháp nhanh.
- Mở tài liệu chính thức khi cần overload, version, behavior chi tiết.
- Ưu tiên trang API khi cần biết method trả về gì, nhận tham số nào.
- Ưu tiên language reference khi cần hiểu cú pháp, precedence, compiler rule.
Lỗi thường gặp
Phần tiêu đề “Lỗi thường gặp”- Copy code từ nhiều version .NET/Unity khác nhau mà không kiểm tra target version.
- Đọc blog cũ nhưng không đối chiếu Microsoft Learn/Unity docs.
- Nhầm API .NET với API Unity cùng tên.
Từ khóa tìm kiếm
Phần tiêu đề “Từ khóa tìm kiếm”official docs, Microsoft Learn, Unity Scripting API, C# reference, .NET docs, ASP.NET Core docs, EF Core docs, tài liệu chính thức