UtilReflectionGetAllConstructors(Type, BindingFlags) Method
Gets all the constructors declared in the specified Type.
Namespace: DevCase.Core.Diagnostics.Assembly.ReflectionAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static IEnumerable<ConstructorInfo> GetAllConstructors(
Type type,
BindingFlags bindingFlags = BindingFlags.DeclaredOnly|BindingFlags.Instance|BindingFlags.Static|BindingFlags.Public|BindingFlags.NonPublic
)
Public Shared Function GetAllConstructors (
type As Type,
Optional bindingFlags As BindingFlags = BindingFlags.DeclaredOnly Or BindingFlags.Instance Or BindingFlags.Static Or BindingFlags.Public Or BindingFlags.NonPublic
) As IEnumerable(Of ConstructorInfo)
Dim type As Type
Dim bindingFlags As BindingFlags
Dim returnValue As IEnumerable(Of ConstructorInfo)
returnValue = UtilReflection.GetAllConstructors(type,
bindingFlags)
public:
static IEnumerable<ConstructorInfo^>^ GetAllConstructors(
Type^ type,
BindingFlags bindingFlags = BindingFlags::DeclaredOnly|BindingFlags::Instance|BindingFlags::Static|BindingFlags::Public|BindingFlags::NonPublic
)
static member GetAllConstructors :
type : Type *
?bindingFlags : BindingFlags
(* Defaults:
let _bindingFlags = defaultArg bindingFlags BindingFlags.DeclaredOnly|BindingFlags.Instance|BindingFlags.Static|BindingFlags.Public|BindingFlags.NonPublic
*)
-> IEnumerable<ConstructorInfo>
No code example is currently available or this language may not be supported.
- type Type
-
The source Type.
- bindingFlags BindingFlags (Optional)
-
Flags that controls binding and the way in which the search for members and types is conducted by Reflection.
IEnumerableConstructorInfo
A
IEnumerableT collection with all the constructors found.
This is a code example.
No code example is currently available or this language may not be supported.
Dim constructors As IEnumerable(Of ConstructorInfo) = GetAllConstructors(GetType(Form))
For Each constructor As ConstructorInfo In constructors
Console.WriteLine(constructor.Name)
Next constructor
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.