NonStaticConstructorRequired() статический приватный Метод

ArgumentException with message like "The constructor should not be static"
static private NonStaticConstructorRequired ( string paramName ) : Exception
paramName string
Результат Exception
Пример #1
0
 private static void ValidateConstructor(ConstructorInfo constructor, string paramName)
 {
     if (constructor.IsStatic)
     {
         throw Error.NonStaticConstructorRequired(paramName);
     }
 }
Пример #2
0
 private static void ValidateConstructor(ConstructorInfo constructor)
 {
     if (constructor.IsStatic)
     {
         throw Error.NonStaticConstructorRequired();
     }
 }