- ago
This is not a question.

I just wanted fellow developers to know that there is an attribute "ModuleInitializerAttribute" in .NET 8.0 that can be used to execute some code before anything else in the compiled extension DLL.

Typically, this can be used to initialize the C# extension module.

o: https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/attributes/general#moduleinitializer-attribute

Hope this will help someone who is looking for a similar functionality.
4
223
0 Replies

Reply

Bookmark

Sort
Currently there are no replies yet. Please check back later.