Beginner's Question about .Net Class Libs

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a DllMain equivilant for a C# .Net class library?

I want to create a class lib that does a particular process when the library
is first called on before the method that was called is run.

thanks in advance,
ed
 
Is there a DllMain equivilant for a C# .Net class library?
No.


I want to create a class lib that does a particular process when the library
is first called on before the method that was called is run.

You usually accomplish that with a static constructor in the class
containing the method.



Mattias
 
Hey Mattias,

If you created a completely static class with a static constructor,
would that constructor be run when the Class Library is loaded?
 
Back
Top