Give your class a static constructor and do your initialization there. It will run the first time anybody calls a static method or property of your class or constructs an instance of your class.
More Related Contents:
- Combine 32- and 64bit DLLs in one program
- Accessing X64 Static library in webservice through Wrapper dll
- How to provide user name and password when connecting to a network share
- Get a screenshot of a specific application
- What is a message pump?
- Merge DLL into EXE?
- Win32 API to enumerate dll export functions?
- Generating DLL assembly dynamically at run time
- Working example of CreateJobObject/SetInformationJobObject pinvoke in .net?
- How can a Metro app in Windows 8 communicate with a backend desktop app on the same machine?
- Set Custom Path to Referenced DLL’s?
- How to call C# DLL function from VBScript
- Changing master volume level
- How can a C++ windows dll be merged into a C# application exe?
- Disabling Screen Saver and Power Options in C#
- Is there a way to find all the functions exposed by a dll
- Monitor process start in the system
- Create an On-screen Keyboard
- BadImageFormatException when loading 32 bit DLL, target is x86
- How do I resolve “Please make sure that the file is accessible and that it is a valid assembly or COM component”?
- C++/CLI wrapper for native C++ to use as reference in C#
- Need a way to reference 2 different versions of the same 3rd party DLL
- How can I call a function of a C++ DLL that accepts a parameter of type stringstream from C#?
- SendInput doesn’t perform click mouse button unless I move cursor
- I/O exception error when using serialport.open()
- Build C++ plugin for Unity
- Can you use C++ DLLs in C# code in a UWP?
- How to check if the system audio is muted?
- Get selected items of folder with WinAPI
- Handling AeroSnap message in WndProc