private static ConstructorInfo GetConstructor(Type className) { ConstructorInfo constrInfo = className.GetConstructor(new Type[] { }); Debug.Assert(constrInfo != null, "Constructor " + className + " cannot be null."); return constrInfo; }