ConstructorInfo Class
System.Reflection
Represents the properties and behavior of a constructor and provides an entry point for accessing constructor members. This class cannot be inherited.
Syntax
public sealed abstract class ConstructorInfo : MethodBase
Properties
Name | Description |
---|---|
Invoke | When overridden in a derived class, invokes the indicated constructor with the specified arguments. |
ConstructorAccessModifiers | Gets the access modifier for the constructor. |
MemberType | Gets a MemberTypes value indicating whether the reflected member is a constructor or a method. |
MethodImplementationFlags | Gets the implementation flags for the method. |
Name | Gets the name of the member. |
DeclaringType | Gets the Type that declares the reflected member. |
ReturnParameterType | Gets the Type of the parameter that is returned by this method. For constructors, this is always void . |
ReturnParameter | Gets the return parameter. For constructors, this is always void . |
CustomAttributes | Gets a collection of custom attribute data applied to the constructor. |
IsGeneric | Gets a value indicating whether the constructor is generic. |
IsGenericMethodDefinition | Gets a value indicating whether the constructor is a generic type definition. |
IsGenericQualifier | Gets a value indicating whether the constructor is a generic type parameter. |
IsInflated | Gets a value indicating whether the constructor is an inflated generic type. |
Methods
Name | Description |
---|---|
Invoke | Overloaded. Invokes the indicated constructor with the specified parameters. |
GetCustomAttributes | Overloaded. When overridden in a derived class, searches the current scope for the uninherited attributes, and returns them. |
IsDefined | When overridden in a derived class, searches for the specified attribute attribute. |
ToString | Returns a string that represents the current object. |