Development · Native API migration preview · Coverage validation in progress Published release →
Module
System.Introspection
module System.Introspection
Descriptions of the loaded program
AssemblyInfo and ModuleInfo describe the loaded catalog. TypeInfo, MemberInfo and
specialized descriptors expose type shapes, declarations, parameters and retained
metadata identities. BindingFlags selects supported query categories.
See introspection for descriptor identity and metadata
availability. These descriptors do not dynamically load assemblies; invocation and
member-access operations are provided separately by System.Runtime.Reflection.
Generic type parameters expose GenericParameterTypeInfo.Variance:
Invariant, Covariant (out) or Contravariant (in). Obtain parameters from
an open definition's generic arguments. Closed constructions expose actual argument
types. Method ParameterInfo.IsOut continues to describe an output argument.
Native discovery supports retained assembly/module type catalogs,
including open definitions and their variance annotations. AOT/JIT require explicit
typeCatalogs retention; open member/relationship queries remain unsupported.
See the reflection reference.
AssemblyInfoDescribes a retained, loaded assembly in the current program.→
BindingFlagsSelects visibility and instance/static categories for metadata queries.→
ConstructorInfoDevelopment metadata contract describing one declared constructor. Execution is separate from introspection.→
CustomAttributeDataDescribes an admitted attribute application without constructing an attribute instance. Development API after Preview 10.→
CustomAttributeNamedArgumentDescribes one named attribute assignment without invoking user code. Development API; resolving MemberInfo and wider argument categories remain unsupported.→
CustomAttributeTypedArgumentDescribes the declared type and constant value of one fixed or named attribute argument.→
FieldInfoDescribes a retained field declaration in the loaded program.→
FunctionTypeInfoDescribes one structural Function signature and its synthesized public instance Invoke method.→
GenericParameterTypeInfoAn unbound generic parameter discovered on a type or method definition. Closed generic arguments describe their actual types instead.→
GenericTypeErrorReasons a generic type cannot be constructed from the supplied arguments.→
GenericVarianceDeclared variance of a nominal interface type parameter.→
IntersectionTypeInfoA structural intersection, requiring all of its constituent types.→
MemberInfoDescribes a declared or synthesized member without exposing mutation or invocation.→
MethodInfoDescribes a retained method declaration in the loaded program.→
ModuleInfoDescribes a logical namespace of members within a loaded assembly. Dotted names are conventions, not metadata hierarchy.→
NominalTypeInfoDescribes a nominal type declaration, including its name, namespace and MemberInfo metadata.→
ParameterInfoDescribes an explicit method parameter or property index parameter in the loaded program.→
PropertyInfoDescribes a retained property declaration in the loaded program.→
TupleTypeInfoA structural value tuple with ordered element types and no nominal definition.→
TypeInfoDescribes nominal and structural types within the current loaded program.→
UnionTypeInfoA structural union, accepting any one of its constituent types.→