UtilReflectionGetAllConstructors(Object, BindingFlags) Method
Gets all the constructors declared in the specified object.
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(
Object obj,
BindingFlags bindingFlags = BindingFlags.DeclaredOnly|BindingFlags.Instance|BindingFlags.Static|BindingFlags.Public|BindingFlags.NonPublic
)
Public Shared Function GetAllConstructors (
obj As Object,
Optional bindingFlags As BindingFlags = BindingFlags.DeclaredOnly Or BindingFlags.Instance Or BindingFlags.Static Or BindingFlags.Public Or BindingFlags.NonPublic
) As IEnumerable(Of ConstructorInfo)
Dim obj As Object
Dim bindingFlags As BindingFlags
Dim returnValue As IEnumerable(Of ConstructorInfo)
returnValue = UtilReflection.GetAllConstructors(obj,
bindingFlags)
public:
static IEnumerable<ConstructorInfo^>^ GetAllConstructors(
Object^ obj,
BindingFlags bindingFlags = BindingFlags::DeclaredOnly|BindingFlags::Instance|BindingFlags::Static|BindingFlags::Public|BindingFlags::NonPublic
)
static member GetAllConstructors :
obj : Object *
?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.
- obj Object
-
The source object from which to retrieve the constructors.
- 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(Me)
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.