private static void ValidateConstructor(ConstructorInfo constructor, string paramName) { if (constructor.IsStatic) throw Error.NonStaticConstructorRequired(paramName); } }