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