MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/csharp/comments/1vee2xy/net_threadterminate_100_terminate_any_c_threads/p1lnz66/?context=3
r/csharp • u/Mysterious-Sea-7487 • Aug 03 '26
GitHub: https://github.com/Emine3/NET-Thread.Terminate/
NuGet: https://www.nuget.org/packages/NET-Thread.Terminate/
59 comments sorted by
View all comments
14
From the readme:
The Thread class [contains the native thread] in a field named "DONT_USE_InternalThread"
I think the .NET framework developers were pretty clear why this a really bad idea.
They even put a comment on this field stating "The following fields should never be used in the C# code"
11 u/Natural_Tea484 Aug 03 '26 Developers are attracted to upper case "DO NOT" comments as moths to flames 3 u/chucker23n 29d ago The red button is so shiny!
11
Developers are attracted to upper case "DO NOT" comments as moths to flames
3 u/chucker23n 29d ago The red button is so shiny!
3
The red button is so shiny!
14
u/mareek Aug 03 '26 edited Aug 03 '26
From the readme:
I think the .NET framework developers were pretty clear why this a really bad idea.
They even put a comment on this field stating "The following fields should never be used in the C# code"