Interface
MemberInfo
sealed interface MemberInfo
Module: System.Introspection
Assembly: System.Runtime.dll
Source file: Descriptors.rvn
Closed hierarchy: only the permitted direct subtypes can extend this type.
Permitted direct subtypes: FieldInfo, MethodInfo, ConstructorInfo, PropertyInfo, NominalTypeInfo
Describes a declared or synthesized member without exposing mutation or invocation.
Remarks
Module and MetadataToken are optional. Synthesized Function Invoke and Function property members have neither; its DeclaringType is its structural signature.
Derived interfaces
Documented types in this API reference. Indirect relationships are marked.
Properties
4 items
DeclaringType: Optional<TypeInfo>
Gets the declaring type, or None for a top-level member.
Defined by MemberInfo.DeclaringType · Required implementation (no default).
MetadataToken: Optional<int>
Gets Some(token) for available declaration metadata, or None for a synthesized member. Tokens are scoped to their defining module.
Defined by MemberInfo.MetadataToken · Required implementation (no default).
Module: Optional<ModuleInfo>
Gets Some(module) for a declared member, or None when no defining module exists.
Defined by MemberInfo.Module · Required implementation (no default).
Name: string
Gets the declared or synthesized member name.
Defined by MemberInfo.Name · Required implementation (no default).
Methods
1 item
GetCustomAttributesData() -> Sequence<CustomAttributeData>
Gets directly declared retained attribute data without executing attribute constructors.
Defined by MemberInfo.GetCustomAttributesData · Required implementation (no default).