I have a static class with a static constructor that takes some time (10-15 seconds) to execute and fully initialize the class. In order to improve performance, I\'ve decided to
I'm not sure if you can specify when a static constructor is loaded.
From MSDN "A static constructor is called automatically to initialize the class before the first instance is created or any static members are referenced."
http://msdn.microsoft.com/en-us/library/k9x6w0hc(v=vs.80).aspx
*EDIT: * Would adding the singleton pattern help here? The getter can call Initialize() by checking a flag in the class, IsLoaded=true. Subsequent calls will not call Initialize()