Skip to content

Duong's Blog

About technology stuff that piqued my interest

  • English
  • Vietnamese
  • About me

Tag: C#

  • Home
  • C#

FastAndFaster and dynamic code generation

December 2, 2022December 2, 2022 duongnt.bk1 Comment on FastAndFaster and dynamic code generation

FastAndFaster is a library to create objects and invoke their methods using dynamic code generation. Its performance is very close to static C# code.

C#, English C#, dynamic, il

FastAndFaster và dynamic code generation

December 2, 2022December 2, 2022 duongnt.bk1 Comment on FastAndFaster và dynamic code generation

Thư viện FastAndFaster sử dụng dynamic code generation để tạo object và gọi hàm của chúng tại runtime. Tốc độ của nó không thua gì static code.

C#, Vietnamese C#, dynamic, il

Lỗi datetime trong .NET 6 và PostgreSQL

October 17, 2022October 17, 2022 duongnt.bkLeave a Comment on Lỗi datetime trong .NET 6 và PostgreSQL

Trong lúc nâng cấp một project lên .NET 6, tôi gặp phải lỗi datetime khi sử dụng provider npgsql efcore. Hôm nay, chúng ta sẽ tìm cách sửa lỗi này.

C#, Vietnamese bug, C#, datetime

Datetime error with .NET 6 and PostgreSQL

October 17, 2022October 17, 2022 duongnt.bk1 Comment on Datetime error with .NET 6 and PostgreSQL

While upgrading a project to .NET 6, I ran into an datetime issue with the latest npgsql efcore provider. Today, we will look at the cause and try to fix it.

C#, English bug, C#, datetime

Use SecureString to store secrets in C#

September 20, 2022September 21, 2022 duongnt.bk1 Comment on Use SecureString to store secrets in C#

If we store passwords in string objects, we cannot control when the corresponding memory is reclaimed. The SecureString type can partially solve this issue.

C#, English C#, password, security

Dùng SecureString trong C# để bảo mật dữ liệu

September 20, 2022September 21, 2022 duongnt.bkLeave a Comment on Dùng SecureString trong C# để bảo mật dữ liệu

Khi lưu mật khẩu bằng string thì ta không biết được bao giờ bộ nhớ tương ứng sẽ được giải phóng. Kiểu SecureString có thể giải quyết một phần vấn đề này.

C#, Vietnamese C#, password, security

How does AutoFixture create test data?

September 7, 2022September 7, 2022 duongnt.bk1 Comment on How does AutoFixture create test data?

I frequently use the AutoFixture library to generate test data for my unit tests. Today, we will checkout the way it generates bool, enum, and int type.

C#, English AutoFixture, C#, random

AutoFixture tạo test data như thế nào?

September 7, 2022September 7, 2022 duongnt.bkLeave a Comment on AutoFixture tạo test data như thế nào?

Tôi thường xuyên sử dụng thư viện AutoFixture để tạo dữ liệu test cho unit test. Hôm nay, chúng ta sẽ tìm hiểu cách nó sinh dữ liệu.

C#, Vietnamese AutoFixture, C#, random

Tên trường của ValueTuple trong C#

July 11, 2022July 11, 2022 duongnt.bkLeave a Comment on Tên trường của ValueTuple trong C#

Đặt tên cho trường trong ValueTuple không phải là một tính năng đột phá của C#. Nhưng các bạn đã bao giờ tự hỏi chức năng đó hoặt động như thế nào?

C#, Vietnamese C#, ValueTuple

All about ValueTuple field names in C#

July 11, 2022July 11, 2022 duongnt.bk1 Comment on All about ValueTuple field names in C#

Naming fields in ValueTuple is not a ground-breaking feature. After all, it is just syntactic sugar. But have you ever wondered how that feature is implemented?

C#, English C#, ValueTuple

Posts navigation

Older posts
Copyright © 2025 Duong's Blog All rights reserved. Theme: Flash by ThemeGrill. Powered by WordPress