C# Generic Static Constructor
- by Seattle Leonard
Will a static constructor on a generic class be run for every type you pass into the generic parameter such as this:
class SomeGenericClass<T>
{
static List<T> _someList;
static SomeGenericClass()
{
_someList = new List<T>();
}
}
Are there any draw backs to using this approach?