Category c#

C# 多线程

Foreground thread vs Background thread Background threads do not keep the application running, even if they are still executing. However, as long as a foreground thread runs, the application will not close. Staring a new thread ThreadPool Creating and starting…

Multithreading & Asynchrony

Process A process is an executing instance of a program that contains its own memory space and resources, operating independently of other processes. Thread Thread is an execution unit within a process. A process can be composed of multiple threads.…

C# Unit Test

Unit test is an automated test that verifies if a single unit of a program works as expected. A single unit is the smallest piece of code that can be logically isolated in a program. Usually. it is a single…

.NET

C# vs .NET C# is not the only language we can run under .NET, but in 99% of the cases it runs under .NET. .NET is a framework that enables running applications wrtitten in C#. Some other .NET-compatible programming languages…

LINQ (Language Integrated Query)

LINQ is a set of technologies that allow simple and efficient querying over different kinds of data. It allows filtering, ordering and transforming the collection elements, and more. LINQ can work with other types of collections like databases or XML…

C# Learning Note

Solution vs Project A solution is simply a collection of projects. DLL DLL stands for Dynamic Link Library. The executable file (exe file) uses the DLL file. So if we remove the DLL, the *.exe would no longer work. Any…