Name

ConstructorInfo

Synopsis

This class is an implementation of MethodBase explicitly for constructors. It adds the two shared read-only properties ConstructorName and TypeConstructorName, which are defined in metadata as methods of the name .ctor and .cctor respectively. (Recall that a “type constructor” is executed as soon as the type is loaded into the CLR; hence the name “class constructor,” — “cctor” for short.)

Public MustInherit Class ConstructorInfo : Inherits MethodBase
' Protected Constructors
   Protected Sub New() 
' Public Shared Fields
   Public Shared ReadOnly ConstructorName As String              // =.ctor
   Public Shared ReadOnly TypeConstructorName As String          // =.cctor
                  ' Public Instance Properties
   Overrides Public ReadOnly Property MemberType As MemberTypes  
' Public Instance Methods
   MustInherit Public Function Invoke(
        ByVal invokeAttr As BindingFlags, 
        ByVal binder As Binder, 
        ByVal parameters As Object(), 
        ByVal culture As System.Globalization.CultureInfo) As Object  
   Public Function Invoke(
        ByVal parameters As Object()) As Object  
End Class

Hierarchy

System.ObjectMemberInfo(ICustomAttributeProvider)MethodBase ConstructorInfo

Subclasses

System.Reflection.Emit.ConstructorBuilder

Returned By

System.Type.{GetConstructor(), GetConstructorImpl(), GetConstructors(), TypeInitializer}

Passed To

Multiple types

Get VB.NET Core Classes in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.