I've been looking at the code for the new Membership API in .NET v2, using .NET Reflector (I love that tool). It's all very fascinating, but there's one thing I still don't get. How is the Membership class' static Initialize() method ever called? That's the method that creates instances of the providers, and I can't for the life of me understand when it gets called.
1 Comment
When one of the Membership properties are called. For example, the Membership's Provider property will call the Initialize method.