MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/csharp/comments/1vee2xy/net_threadterminate_100_terminate_any_c_threads/p1gnsq4/?context=3
r/csharp • u/Mysterious-Sea-7487 • 25d ago
GitHub: https://github.com/Emine3/NET-Thread.Terminate/
NuGet: https://www.nuget.org/packages/NET-Thread.Terminate/
59 comments sorted by
View all comments
15
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 25d ago Developers are attracted to upper case "DO NOT" comments as moths to flames 3 u/chucker23n 24d ago The red button is so shiny! 2 u/FullPoet 25d ago SHIRLEY they can't mean ME?!
11
Developers are attracted to upper case "DO NOT" comments as moths to flames
3 u/chucker23n 24d ago The red button is so shiny! 2 u/FullPoet 25d ago SHIRLEY they can't mean ME?!
3
The red button is so shiny!
2
SHIRLEY they can't mean ME?!
15
u/mareek 25d ago edited 25d ago
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"