System.Linq.Expressions.Expression.ValidateConstructor C# (CSharp) Method

ValidateConstructor() private static method

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