See Also: ConstructorInfo Members
ConstructorInfo is used to discover the attributes of a constructor as well as to invoke a constructor. Objects are created by calling ConstructorInfo.Invoke(BindingFlags, Binder, Object[], System.Globalization.CultureInfo) on a ConstructorInfo returned by either the Type.GetConstructors or Type.GetConstructor(BindingFlags, Binder, CallingConventions, Type[], ParameterModifier[]) method of a Type object.
System.Reflection.ConstructorInfo inherits from System.Reflection.MethodBase several members, such as MethodBase.IsGenericMethod, that can be used to examine generic methods. In the .NET Framework version 2.0 constructors cannot be generic, so these members return false or null.
Type | Reason |
---|---|
System.Security.Permissions.ReflectionPermission | Requires permission to reflect non-public members of a type in loaded assemblies. See System.Security.Permissions.ReflectionPermissionFlag.TypeInformation. |