internal static Exception NonStaticConstructorRequired(string paramName) { return new ArgumentException(Strings.NonStaticConstructorRequired, paramName); }
private static void ValidateConstructor(ConstructorInfo constructor, string paramName) { if (constructor.IsStatic) { throw Error.NonStaticConstructorRequired(paramName); } }