Table of Contents

Method GetConstructors

Namespace
Microsoft.Samples.Debugging.CorMetadata
Assembly
corapi.dll

GetConstructors(BindingFlags)

When overridden in a derived class, searches for the constructors defined for the current Type, using the specified BindingFlags.

public override ConstructorInfo[] GetConstructors(BindingFlags bindingAttr)

Parameters

bindingAttr BindingFlags

A bitmask comprised of one or more BindingFlags that specify how the search is conducted.-or- Zero, to return null.

Returns

ConstructorInfo[]

An array of ConstructorInfo objects representing all constructors defined for the current Type that match the specified binding constraints, including the type initializer if it is defined. Returns an empty array of type ConstructorInfo if no constructors are defined for the current Type, if none of the defined constructors match the binding constraints, or if the current Type represents a type parameter in the definition of a generic type or generic method.