Category

.NET

NET Ecology, Runtime and Engineering Experience Precipitation

190 篇文章
6 当前页
Upgrade. NET Core 3.1 to. NET 8

Upgrade. NET Core 3.1 to. NET 8

NET Core 3.1 has been in use for a long time. In fact, Microsoft will no longer provide support at the end of 2022. The later LTS version. NET 6 will also expire support in November 2024, so upgrading directly to. NET 8 is the best choice.

不止dotNET 12/8/2023 5:27 AM
NET8 officially released, new changes in C #12

NET8 officially released, new changes in C #12

Although 8 has brought many enhancements, such as artificial intelligence, cloud native, performance, native AOT, etc., I am still most concerned about the C#language and some framework-level changes. Here are some new features in C#12 and the framework that I think are more practical.

不止dotNET 11/17/2023 5:36 PM
C#Array Deletion Cheats: Quick Deletion Tips reveal to make your code more efficient!

C#Array Deletion Cheats: Quick Deletion Tips reveal to make your code more efficient!

When it comes to deleting elements in a C#array, you may encounter two common methods: regular deletes and swap deletes (quick deletes). Normal deletes require traversing the array and moving elements, while swap deletes delete by swapping element positions. This article describes the time complexity of these two methods and provides sample code to demonstrate their use. By learning these quick removal techniques, you will be able to optimize your code to make it more efficient. Let's reveal these tips together to make your code better!

沙漠尽头的狼 11/11/2023 6:11 PM
Deep understanding of C#bit operations: mastering the magic use of bit operators

Deep understanding of C#bit operations: mastering the magic use of bit operators

C#bit arithmetic is a powerful tool that can play an important role in processing binary data and bit operations. By using bit operators, we can perform bit-level operations on integers, such as bit AND, bit OR, bit XOR, and bit negation. Bit operations can be used to optimize performance, compress data, implement bit masks and bit flags, etc. Understanding and mastering the basic principles and common application scenarios of C#bit operations will allow us to process binary data more efficiently and in some cases improve the performance and readability of the code. By deeply understanding C#bit operations, we can exercise greater creativity and flexibility in programming.

沙漠尽头的狼 11/6/2023 11:15 PM
NET decompilation, third-party library debugging (interception, tampering, counterfeiting), one library multiple versions compatible

NET decompilation, third-party library debugging (interception, tampering, counterfeiting), one library multiple versions compatible

Simulate the actual application scenario of. NET and comprehensively apply three main knowledge points: first, use dnSpy to decompile and debug the third library, second, use the Lib.Harmony library to realize interception and counterfeiting of the third library, and third, realize that the same library supports multiple versions. Reference.

沙漠尽头的狼 9/26/2023 12:16 AM